a, b = input().split()

n = int(a + b)



flag = False

for i in range(n):

    if i ** 2 == n:

        flag = True

        break



print(('Yes' if flag else 'No'))

a, b = input().split()

n = int(a + b)



flag = False

for i in range(1000):

    if i ** 2 == n:

        flag = True

        break



print(('Yes' if flag else 'No'))

a, b = input().split()
n = int(a + b)
flag = False
for i in range(n):
    if i**2 == n:
        flag = True
        break
print(("Yes" if flag else "No"))

a, b = input().split()
n = int(a + b)
flag = False
for i in range(1000):
    if i**2 == n:
        flag = True
        break
print(("Yes" if flag else "No"))

-for i in range(n): +for i in range(1000):