#include using namespace std; using ll = long long; using ld = long double; using pint = pair; using pll = pair; int main(){ ll N; cin >> N; bool ok = false; for(ll a = 1; a * a * a <= N; a++){ if(a * a * a == N)ok = true; } cout << (ok ? "Yes": "No") << endl; }