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



for i in range(1,10001):

    if i**2 == int(a+b):

        print('Yes')

        exit()

        

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



N = int(a+b)



import sys



for i in range(1,int(N**0.5)+1):

    if i**2 == N:

        print('Yes')

        sys.exit()

        

print('No')
a, b = list(map(str, input().split()))
for i in range(1, 10001):
    if i**2 == int(a + b):
        print("Yes")
        exit()
print("No")

a, b = list(map(str, input().split()))
N = int(a + b)
import sys

for i in range(1, int(N**0.5) + 1):
    if i**2 == N:
        print("Yes")
        sys.exit()
print("No")

-for i in range(1, 10001): -    if i**2 == int(a + b): +N = int(a + b) +import sys + +for i in range(1, int(N**0.5) + 1): +    if i**2 == N: -        exit() +        sys.exit()