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

c=int(a+b)

sq = [i*i for i in range(1,10001)]

if c in sq: print('Yes')

else: print('No')
a, b = map(int, input().split())



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



square = [i ** 2 for i in range(1, 500)]



print('Yes') if c in square else print('No')

a, b = list(map(str, input().split()))
c = int(a + b)
sq = [i * i for i in range(1, 10001)]
if c in sq:
    print("Yes")
else:
    print("No")

a, b = map(int, input().split())
c = int(str(a) + str(b))
square = [i**2 for i in range(1, 500)]
print("Yes") if c in square else print("No")

-a, b = list(map(str, input().split())) -c = int(a + b) -sq = [i * i for i in range(1, 10001)] -if c in sq: -    print("Yes") -else: -    print("No") +a, b = map(int, input().split()) +c = int(str(a) + str(b)) +square = [i**2 for i in range(1, 500)] +print("Yes") if c in square else print("No")