a,b = input().split()

c = a+b

c = int(c)

for i in range (1000):

  if i**2 == c:

    print("Yes")

    exit()

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

c = a+b

c = int(c)

import math

if int(math.sqrt(c)) ** 2 == c:

  print("Yes")

else:

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

a, b = input().split()
c = a + b
c = int(c)
import math

if int(math.sqrt(c)) ** 2 == c:
    print("Yes")
else:
    print("No")

-for i in range(1000): -    if i**2 == c: -        print("Yes") -        exit() -print("No") +import math + +if int(math.sqrt(c)) ** 2 == c: +    print("Yes") +else: +    print("No")