
ZOJ Problem Set  2736
The daffodil number is one of the famous interesting numbers in the mathematical world. A daffodil number is a threedigit number whose value is equal to the sum of cubes of each digit. For example. 153 is a daffodil as 153 = 1^{3} + 5^{3} + 3^{3}. Input There are several test cases in the input, each case contains a threedigit number. Output One line for each case. if the given number is a daffodil number, then output "Yes", otherwise "No". Sample Input
153 Sample Output
Yes Author: LIU, Yaoting Source: Zhejiang Provincial Programming Contest 2006, Preliminary 