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