a,b=list(map(str,input().split()))

c=int(a+b)

d=int(c**(1/2))



if d**2==c:

    print('Yes')

else:

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

print(('Yes' if int(int((int(a+b))**0.5)**2)==int(a+b) else 'No'))
a, b = list(map(str, input().split()))
c = int(a + b)
d = int(c ** (1 / 2))
if d**2 == c:
    print("Yes")
else:
    print("No")

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

-a, b = list(map(str, input().split())) -c = int(a + b) -d = int(c ** (1 / 2)) -if d**2 == c: -    print("Yes") -else: -    print("No") +a, b = input().split() +print(("Yes" if int(int((int(a + b)) ** 0.5) ** 2) == int(a + b) else "No"))