import math

a,b = input().split()

S = a+b

K = int(S)

if math.sqrt(K) %1 == 0:

  print("Yes")

else:

  print("No")
import math

s,t = input().split()

N = int(s+t)

if (N**0.5)%1 == 0:

    print("Yes")

else:

    print("No")
import math

a, b = input().split()
S = a + b
K = int(S)
if math.sqrt(K) % 1 == 0:
    print("Yes")
else:
    print("No")

import math

s, t = input().split()
N = int(s + t)
if (N**0.5) % 1 == 0:
    print("Yes")
else:
    print("No")

-a, b = input().split() -S = a + b -K = int(S) -if math.sqrt(K) % 1 == 0: +s, t = input().split() +N = int(s + t) +if (N**0.5) % 1 == 0: