#include using namespace std; #define ll long long void solve() { ll n; cin >> n; ll r = pow(n, 1.0 / 3.0); for (ll i = r - 2; i <= r + 2; ++i) { if (i * i * i == n) { cout << "Yes\n"; return; } } cout << "No\n"; return; } int main(){ ios::sync_with_stdio(0); cin.tie(0); ll t = 1; //cin >> t; while (t--) { solve(); } return 0; }