#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    if (i * i * i == n) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
