#include <stdio.h>
int main()
{
int m, a,b,c,d;
scanf_s("%d", &m);
a = (int)(m / 100);
b = (int)((m -a100)/10);
c = (int)(m -100a-10b);
d = (a * aa )+ (b * bb )+( c * cc);
// printf("%d %d %d %d %d",m,a,b,c, d);
if (m == d)
{
printf("%d是水仙花数",m);
}
else
{
printf("%d不是水仙花数",m);
}
return 0;
}