#include<iostream>
using namespace std;
int main()
{
int x,y,z;//x为公鸡 5钱,y为母鸡 3钱,z为鸡雏 1钱(3只)
for(x=0; x<=20; x++)
for(y=0; y<=33; y++)
{
z=(100-5*x-3*y)*3;
if(x+y+z==100)
cout<<"gongji:"<<x<<" "<<"muji:"<<y<<" "<<"jichu:"<<z<<endl;
}
return 0;
}
}