int numCock=0, numHen=0,numChick=0;
System.out.println("Cock Hen Chick");
for(numCock=1;numCock<20;numCock++)
{
for(numChick=3;numChick<100;numChick=numChick+3)
{
numHen=100-numCock-numChick;
if (((numHen*3+numCock*5+numChick/3)==100)&&(numHen>0))
System.out.println(numCock+" "+numHen+" "+numChick);
}
}
}