#include <stdio.h> int main() { int n,a,b,c; scanf("%d",&n); a=n%10; b=n/10%10; c=n/100; if(n==a*a*a+b*b*b+c*c*c) printf("YES"); else printf("NO"); return 0;}
#include <stdio.h> int main() { int n,a,b,c; scanf("%d",&n); a=n%10; b=n/10%10; c=n/100; if(n==a*a*a+b*b*b+c*c*c) printf("YES"); else printf("NO"); return 0;}