a = input().replace(' ','')

if int(a)**0.5 % 1 == 0:

    print('Yes')

else:

    print('No')

a = input().replace(' ','')

print(('Yes' if int(a)**0.5 % 1 == 0 else 'No'))
a = input().replace(" ", "")
if int(a) ** 0.5 % 1 == 0:
    print("Yes")
else:
    print("No")

a = input().replace(" ", "")
print(("Yes" if int(a) ** 0.5 % 1 == 0 else "No"))

-if int(a) ** 0.5 % 1 == 0: -    print("Yes") -else: -    print("No") +print(("Yes" if int(a) ** 0.5 % 1 == 0 else "No"))