#include using namespace std; #define rep(i,l,r) for(int i=(l);i<(r);++i) typedef long long ll; int main(){ ll n; cin>>n; bool flg=false; for(ll i=1; i*i*i<=n; i++){ if(i*i*i==n) flg=true; } cout<<(flg?"Yes":"No")<