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

for i in range (1,100100):

  if 1<=b<=9:

    if 10*a+b==i**2:

      print('Yes')

      exit()

  if 10<=b<=99:

    if 100*a+b==i**2:

      print('Yes')

      exit()

  if b==100:

    if 1000*a+b==i**2:

      print('Yes')

      exit()

print('No')



    
a,b=input().split()

c=a+b

for i in range(1,1000):

  if int(c)==i**2:

    print('Yes')

    exit()

print('No')
a, b = list(map(int, input().split()))
for i in range(1, 100100):
    if 1 <= b <= 9:
        if 10 * a + b == i**2:
            print("Yes")
            exit()
    if 10 <= b <= 99:
        if 100 * a + b == i**2:
            print("Yes")
            exit()
    if b == 100:
        if 1000 * a + b == i**2:
            print("Yes")
            exit()
print("No")

a, b = input().split()
c = a + b
for i in range(1, 1000):
    if int(c) == i**2:
        print("Yes")
        exit()
print("No")

-a, b = list(map(int, input().split())) -for i in range(1, 100100): -    if 1 <= b <= 9: -        if 10 * a + b == i**2: -            print("Yes") -            exit() -    if 10 <= b <= 99: -        if 100 * a + b == i**2: -            print("Yes") -            exit() -    if b == 100: -        if 1000 * a + b == i**2: -            print("Yes") -            exit() +a, b = input().split() +c = a + b +for i in range(1, 1000): +    if int(c) == i**2: +        print("Yes") +        exit()