#include <iostream> using namespace std; int main() { int n, r = 0; cin >> n; int nb = n; while (n != 0) { int x = n % 10; r += x * x * x; n /= 10; } if (r == nb) { cout << "YES"; } else { cout << "NO"; } }
比赛已结束。