#include <stdio.h>
int main(void) {
// your code goes here
int num=1523,og_num,remainder,result,n=3;
og_num=num;
// while(og_num!=0){
// num/=10;
// n++;
// }
while(num!=0){
remainder%10;
result
+=pow(remainder
,n
); num/=10;
}
if(result==num){
}
else{
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglpbnQgbnVtPTE1MjMsb2dfbnVtLHJlbWFpbmRlcixyZXN1bHQsbj0zOwoJb2dfbnVtPW51bTsKCQoJLy8gd2hpbGUob2dfbnVtIT0wKXsKCS8vIAludW0vPTEwOwoJLy8gCW4rKzsKCS8vIH0KCXdoaWxlKG51bSE9MCl7CgkJcmVtYWluZGVyJTEwOwoJCXJlc3VsdCs9cG93KHJlbWFpbmRlcixuKTsKCQludW0vPTEwOwoJfQoJaWYocmVzdWx0PT1udW0pewoJcHJpbnRmKCJBcm1zdHJvbmciKTsKCX0KCWVsc2V7CgkJcHJpbnRmKCJub3QgYW4gYXJtc3Ryb25nIik7Cgl9CglyZXR1cm4gMDsKfQo=