#include using namespace std; long long n; int main(){ cin >> n; double x = cbrt(n); if(floor(x) == x) cout << "Yes" << endl; else cout << "No" << endl; }