#include<iostream> using namespace std; int main(){ long long a; bool c=false; cin>>a; for(long long b=0;b<a;b++){ if(b*b*b==a){ c=true; break; } } if(c==true) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }