# includeint main(){
int x;
scanf("%d",&x);
int IsShuiXianShu(int i);
int b=IsShuiXianShu(x);
if(b==1)printf("%d是水仙数",x);
return 0;
}
int IsShuiXianShu(int i){
if(i<100||i>=1000)
return 0;
int j=i;
int a=j/100;
j=j-a*100;
int b=j/10;
j=j-b*10;
int c=j;
if(a*a*a+b*b*b+c*c*c==i)
return 1;
return 0;
}