#include using namespace std; using ll = long long; #define fi first #define se second #define all(a) a.begin(),a.end() int main(){ ll n; cin >> n; bool flag=false; for(ll i=1; i*i*i<=n; ++i){ flag=(i*i*i==n); } cout << (flag ? "Yes\n" : "No\n"); return 0; }