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

ab = int(str(a) + str(b))

abroot = str(ab**0.5)

if abroot.split(".")[1:][0] == "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()))
ab = int(str(a) + str(b))
abroot = str(ab**0.5)
if abroot.split(".")[1:][0] == "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")

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