a,b = input().split()

t = int(a+b)

flag = False

for i in range(t//2 + 1):

    if i**2 == t:

        flag = True

        break

if flag: print("Yes")

else: print("No")

a,b = input().split()

t = int(a+b)

print(("Yes" if t == int(t**0.5)**2 else "No"))

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

a, b = input().split()
t = int(a + b)
print(("Yes" if t == int(t**0.5) ** 2 else "No"))

-flag = False -for i in range(t // 2 + 1): -    if i**2 == t: -        flag = True -        break -if flag: -    print("Yes") -else: -    print("No") +print(("Yes" if t == int(t**0.5) ** 2 else "No"))