1125: 水仙花数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:14 Solved:8

Description

水仙花数指的是一个三位数,它每个数位上的数的3次幂之和等于它本身。例如:153是水仙花数,因为1*1*1+5*5*5+3*3*3=153。请仔细思考,设计一个程序,用于判断水仙花数。

Input

一个三位整数

Output

如果为水仙花数,输出“YES”,否则输出“NO”

Sample Input Copy

153

Sample Output Copy

YES