#include using namespace std; long long n; int main(){ cin >> n; bool ans = false; for(long long i=floor(sqrt(sqrt(n))); i*i*i <= n; i++){ if(i*i*i == n) ans = true; } if(ans) cout << "Yes" << endl; else cout << "No" << endl; }