public class 百元买百鸡 {
	public static void main(String[] args) {
		 //母鸡
        for (int i = 1; i < 33; i++)
        {//公鸡
            for (int j = 1; j < 20; j++)
            {//小鸡
                for (int k = 1; k <300; k++)
                {
                    if (i*3+j*5+k/3==100&&i+j+k==100&&k%3==0)
                    {
                       System.out.println("公鸡 "+j+"母鸡 "+i+"小鸡 "+k);
                    }
                }
            }
        }
	}

}


public class 百元买百鸡 {
	public static void main(String[] args) {
		 //母鸡
        for (int i = 1; i < 33; i++)
        {//公鸡
            for (int j = 1; j < 20; j++)
            {//小鸡
                for (int k = 1; k <300; k++)
                {
                    if (i*3+j*5+k/3==100&&i+j+k==100&&k%3==0)
                    {
                       System.out.println("公鸡 "+j+"母鸡 "+i+"小鸡 "+k);
                    }
                }
            }
        }
	}

}