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

x = int(a + b)

ans = "No"

for i in range(x // 2):

    if x == i * i:

        ans = "Yes"

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

x = int(a + b)

if x ** 0.5 == int(x ** 0.5):

    print("Yes")

else:

    print("No")
a, b = list(map(str, input().split()))
x = int(a + b)
ans = "No"
for i in range(x // 2):
    if x == i * i:
        ans = "Yes"
print(ans)

a, b = list(map(str, input().split()))
x = int(a + b)
if x**0.5 == int(x**0.5):
    print("Yes")
else:
    print("No")

-ans = "No" -for i in range(x // 2): -    if x == i * i: -        ans = "Yes" -print(ans) +if x**0.5 == int(x**0.5): +    print("Yes") +else: +    print("No")