A number is called square if the sum of its digits is equal to the square of a natural number.
For example, the number is square because the sum of its digits is 8+8=16, which is the square of . In contrast, the number is not square since the sum of its digits is 2+3=5, and there is no natural number whose square is .
Determine if the given natural number is square.
A single natural number not exceeding 10^9.
Print Yes if the given number is square; otherwise, print No.
Esempio 1