#include int main() {int n,a,b,c;scanf("%d",&n);if(n>=100&&n<=999){a=n%10;b=n/10%10;c=n/100;if(a*a*a+b*b*b+c*c*c==n)printf("Yes");elseprintf("No");}elseprintf("Invalid Value!");return 0;}