main()
{
// 从键盘上输入一个四位数,判断其是否为四叶玫瑰数
// (提示:四叶玫瑰数是指一个四位数,它的每个位上的数字的4次幂之和等于它本身)
int rose,one,two,three,four;
scanf("%d",&rose);//
four=rose/1000;
three=rose/100%10;
two=rose/10%10;
one=rose%10;
four=four*four*four*four;
three=three*three*three*three;
two=two*two*two*two;
one=one*one*one*one;
if((four+three+two+one)==rose)
printf("%d",rose);
}