#include<iostream>
using namespace std;
int main()
{
long long int s = 0;
long long int n;
cin >> n;
int m = n;
while (n> 0)
{
int m = n % 10;
n = n / 10;
// cout << m << " ";
s = s + m*m*m;
}
// cout << s << endl;
if (s == m)
{
cout << "1";
}
else
{
cout << "0";
}
return 0;
}
05-06
1032
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-20
09-08
2380
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-05
3055
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)