#include using namespace std; using ll = long long; const int INF = 1e+9; const ll LINF = (ll)pow(10,18); int main(){ ll n; cin >> n; bool can = 0; for(ll i=1; i<=1000000; i++) if(i*i*i == n) can = 1; if(can) cout << "Yes" << endl; else cout << "No" << endl; }