x1 , x2 = input().split()

s = int(x1 + x2)



root_s = s ** (1 / 2)



if int(root_s) ** 2 == s:

    print("Yes")

else:

    print("No")

x1 , x2 = input().split()

s = int(x1 + x2)



table = []

for i in range(1,1000):

    table.append(i * i)

for x in table:

    if x == s:

        print("Yes")

        quit()

print("No")

x1, x2 = input().split()
s = int(x1 + x2)
root_s = s ** (1 / 2)
if int(root_s) ** 2 == s:
    print("Yes")
else:
    print("No")

x1, x2 = input().split()
s = int(x1 + x2)
table = []
for i in range(1, 1000):
    table.append(i * i)
for x in table:
    if x == s:
        print("Yes")
        quit()
print("No")

-root_s = s ** (1 / 2) -if int(root_s) ** 2 == s: -    print("Yes") -else: -    print("No") +table = [] +for i in range(1, 1000): +    table.append(i * i) +for x in table: +    if x == s: +        print("Yes") +        quit() +print("No")