#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>d; a=d/100; b=d/10%10; c=d%10; if(a*a*a+b*b*b+c*c*c==d){ cout<<"YES"; }else cout<<"NO"; } /************************************************************** Problem: 1671 User: panyuchen Language: C++ Result: Accepted Time:6 ms Memory:2072 kb ****************************************************************/