#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>d;
a=d/100;
b=d/10%10;
c=d%10;
if(a*a*a+b*b*b+c*c*c==d){
cout<<"yes";
}else cout<<"no";
}
/**************************************************************
Problem: 1671
User: panyuchen
Language: C++
Result: Wrong Answer
****************************************************************/