#include <iostream>
using namespace std;
int main()
{
int x,y,z;
for(x=0; x<=20; x++)
for(y=0; y<=33; y++)
for(z=0; z<=100; z++)
if(5*x+3*y+z/3==100 && x+y+z==100)
cout<<x<<" "<<y<<" "<<z<<" "<<endl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int i,j,k;
for(i=0;i<=100;i++)
for(j=0;j<=50;j++)
for(k=0;k<=20;k++)
if(i+2*j+5*k==100)
cout<<i<<" "<<j<<" "<<k<<" "<<endl;
return 0;
}