#include #include #include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll n; cin>>n; ll right = 1e6 + 1; ll left = 0; while(right-left>1){ ll mid = (right+left) / 2; if(mid*mid*mid>=n) right = mid; else left = mid; } if(right*right*right==n) cout<<"Yes\n"; else cout<<"No\n"; }