#include #include #include #include #include #include #include #include using namespace std; const long long MOD = (long long)(1e9) + 7; int main() { //cout << fixed << setprecision(15); long long n; cin >> n; for (long long i = 1; i <= 1000000; i++) { if (i * i * i == n) { cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }