#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
typedef long long ll;
const int N = 1e5 + 10;
int t,n,m;
int main() {
ios::sync_with_stdio(false);
cin >> n;
int k = cbrt(n);
if (k * k * k == n) {
cout << "YES" << endl;
}else {
cout << "NO" << endl;
}
return 0;
}