问题1248--Daffodil number

1248: Daffodil number

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

The daffodil number is one of the famous interesting numbers in the mathematical world. A daffodil number is a three-digit number whose value is equal to the sum of cubes of each digit. For example. 153 is a daffodil as 153 = pow(1,3) + pow(5,3) + pow(3,3).

输入

There are several test cases in the input, each case contains a three-digit number.

输出

One line for each case. if the given number is a daffodil number, then output "Yes", otherwise "No".

样例输入 Copy

153
610

样例输出 Copy

Yes
No