Square Numbers#2804

Square Numbers

1 secondo
64 megabyte
Molto facile

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.

Input

A single natural number not exceeding 10^9.

Output

Print Yes if the given number is square; otherwise, print No.

Esempi

Esempio 1

Loading
Loading