#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
int g=a%10;
int s=a/10%10;
int b=a/100;
if(a==b*b*b+s*s*s+g*g*g)
cout<<"yes";
}
else
cout<<"no";