#include using namespace std; int main(){ long long N; cin >> N; bool fl=false; for(long long i=1;i<=1000000;i++){ if(i*i*i==N)fl=true; } if(fl)cout << "Yes" << endl; else cout << "No" << endl; return 0; }