a,b=input().split()

c=a+b

c=int(c)

if any(i**2 == c for i in range(c//2)):

  print("Yes")

else:

  print("No")
a,b=input().split()

c=a+b

c=int(c)

if (c ** .5).is_integer():

  print("Yes")

else:

  print("No")
a, b = input().split()
c = a + b
c = int(c)
if any(i**2 == c for i in range(c // 2)):
    print("Yes")
else:
    print("No")

a, b = input().split()
c = a + b
c = int(c)
if (c**0.5).is_integer():
    print("Yes")
else:
    print("No")

-if any(i**2 == c for i in range(c // 2)): +if (c**0.5).is_integer():