Problem4534--水仙花指数

4534: 水仙花指数

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

定义一个十进制整数的各位数字的立方和为它的水仙花指数,给定一个整数,请计算它的水仙花指数。

例如 lns="http://www.w3.org/1998/Math/MathML">1234 的水仙花指数为 lns="http://www.w3.org/1998/Math/MathML">13+23+33+43=1+8+27+64=100

Input

  • 单个整数:用 lns="http://www.w3.org/1998/Math/MathML">n 表示。
1≤n≤1,000,000,000




Output

  • 单个整数:表示输入整数的水仙花指数。

Sample Input Copy

153

Sample Output Copy

153

Source/Category