import math



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

res = a+b

#print(math.sqrt(int(res)))

x = int(math.sqrt(int(res)))

if x**2 == int(res):

  print('Yes')

else:

  print('No')
from math import sqrt

a,b=input().split()

c=int(a+b)

if sqrt(c)==int(sqrt(c)):

  print('Yes')

else:

  print('No')
import math

a, b = list(map(str, input().split()))
res = a + b
# print(math.sqrt(int(res)))
x = int(math.sqrt(int(res)))
if x**2 == int(res):
    print("Yes")
else:
    print("No")

from math import sqrt

a, b = input().split()
c = int(a + b)
if sqrt(c) == int(sqrt(c)):
    print("Yes")
else:
    print("No")

-import math +from math import sqrt -a, b = list(map(str, input().split())) -res = a + b -# print(math.sqrt(int(res))) -x = int(math.sqrt(int(res))) -if x**2 == int(res): +a, b = input().split() +c = int(a + b) +if sqrt(c) == int(sqrt(c)):