#include
#include
#include
int main()
{
int i=0,a=0,temp,num,n=0,sum=0;
printf("请输入:");
scanf("%d",&num);
temp=num;
while(temp!=0){
temp/=10;
n++;
}
while(num!=0){
a=num%10;
num/=10;
i=pow(a,n);
sum=sum+i;
}
if(num==sum){
printf("是");
}
else
printf("不是");
return 0;
}