#include
int main()
{int nike,make,mani,boli;
for(nike=1;nike<5;nike++)
for(make=1;make<5;make++)
if(make!=nike)
for(mani=1;mani<5;mani++)
if(mani!=nike&&mani!=make)
{boli=10-nike-make-mani;
if(((make==1)+(boli==4)+(mani==3)+(nike==2)==2)
&&((boli==1)+(make==4)+(mani==2)+(nike==3)==2)
&&((make==1)+(nike==4)+(boli==3)+(mani==2)==2)
&&((boli==4)+(make==3)==1))
printf("nike:%d\nmake:%d\nmani:%d\nboli:%d\n",nike,make,mani,boli);
}
return 0;
}