a,b=input().split()

num=int(a+b)

for i in range(num):

    if i*i == num:

        print('Yes')

        break

else:

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

x=int(a+b)

for i in range(int(x**0.5)+1):

    if i**2 ==x:

        print('Yes')

        exit()

print('No')
a, b = input().split()
num = int(a + b)
for i in range(num):
    if i * i == num:
        print("Yes")
        break
else:
    print("No")

a, b = input().split()
x = int(a + b)
for i in range(int(x**0.5) + 1):
    if i**2 == x:
        print("Yes")
        exit()
print("No")

-num = int(a + b) -for i in range(num): -    if i * i == num: +x = int(a + b) +for i in range(int(x**0.5) + 1): +    if i**2 == x: -        break -else: -    print("No") +        exit() +print("No")