#include "stdio.h"
main()
{
int a,b,c,d,e,f,s=0;
for(a=0;a<=2;a++)
for(b=0;b<=5;b++)
for(c=0;c<=10;c++)
for(d=0;d<=20;d++)
for(e=0;e<=50;e++)
for(f=0;f<=100;f++)
if(50a+20b+10c+5d+2e+f==100)
{
s=s+1;
printf("the %d is:%d ge wu mao,%d ge liang mao,%d ge yi mao,%d ge wu fen,%d ge liang fen,%d ge yi fen.\n",s,a,b,c,d,e,f);
}
else continue;
}