x = int(input().replace(' ', ''))

for i in range(x):

    if i*i == x:

        print('Yes')

        exit()

print('No')
x = int(input().replace(' ', ''))

print(('Yes' if x in [i*i for i in range(1000)] else 'No'))
x = int(input().replace(" ", ""))
for i in range(x):
    if i * i == x:
        print("Yes")
        exit()
print("No")

x = int(input().replace(" ", ""))
print(("Yes" if x in [i * i for i in range(1000)] else "No"))

-for i in range(x): -    if i * i == x: -        print("Yes") -        exit() -print("No") +print(("Yes" if x in [i * i for i in range(1000)] else "No"))