#include
void main( )
{
int heads,feet,cocks,rabbits;
scanf("%d%d",&heads,&feet);
if(heads < 0 || feet % 2 != 0 || feet < 2 * heads || feet > 4 * heads)
{
printf("Non");
return;
}
rabbits = (feet - 2 * heads) / 2;
cocks = heads - rabbits;
printf("cocks:%d,rabbits:%dn",cocks,rabbits);
}