B - 1 21 解説 /

実行時間制限: 2 sec / メモリ制限: 256 MB

配点 : 200

問題文

シカのAtCoDeerくんは二つの正整数 a,b を見つけました。 ab をこの順につなげて読んだものが平方数かどうか判定してください。

制約

  • 1 a,b 100
  • a,b は整数

入力

入力は以下の形式で標準入力から与えられる。

a b

出力

ab をこの順につなげて読んだものが平方数なら Yes を、 そうでないなら No を出力せよ。


入力例 1

1 21

出力例 1

Yes

121 = 11 × 11 なので、平方数です。


入力例 2

100 100

出力例 2

No

100100 は平方数ではありません。


入力例 3

12 10

出力例 3

No

Score : 200 points

Problem Statement

AtCoDeer the deer has found two positive integers, a and b. Determine whether the concatenation of a and b in this order is a square number.

Constraints

  • 1 a,b 100
  • a and b are integers.

Input

Input is given from Standard Input in the following format:

a b

Output

If the concatenation of a and b in this order is a square number, print Yes; otherwise, print No.


Sample Input 1

1 21

Sample Output 1

Yes

As 121 = 11 × 11, it is a square number.


Sample Input 2

100 100

Sample Output 2

No

100100 is not a square number.


Sample Input 3

12 10

Sample Output 3

No