a, b = list(map(int,input().split()))

if str(int(str(a) + str(b))**0.5).split(".")[1:][0] == "0":

    print("Yes")

else:

    print("No")
a, b = list(map(int,input().split()))

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

    print("Yes")

else:

    print("No")
a, b = list(map(int, input().split()))
if str(int(str(a) + str(b)) ** 0.5).split(".")[1:][0] == "0":
    print("Yes")
else:
    print("No")

a, b = list(map(int, input().split()))
if int(str(a) + str(b)) ** 0.5 % 1 == 0:
    print("Yes")
else:
    print("No")

-if str(int(str(a) + str(b)) ** 0.5).split(".")[1:][0] == "0": +if int(str(a) + str(b)) ** 0.5 % 1 == 0: