语言入门39
#include<stdio.h>
int main()
{
int n,a,b,c,i;
while(i--)
{ scanf("%d",&n);
if(n==0)
break;
a=n/100;
b=(n/10)%10;
c=n%10;
if(a*a*a+b*b*b+c*c*c==n)
printf("Yes\n");
else
printf("No\n");
}
return 0;
}