import sys

import math



A,B=input().split()

X=int(A+B)



print(('Yes' if math.sqrt(X).is_integer() else 'No'))
import sys

 

A,B=input().split()

X=int(A+B)

L=[x*x for x in range(1,1001)]

 

if X in L:

  print('Yes')

else:

  print('No')
import sys
import math

A, B = input().split()
X = int(A + B)
print(("Yes" if math.sqrt(X).is_integer() else "No"))

import sys

A, B = input().split()
X = int(A + B)
L = [x * x for x in range(1, 1001)]
if X in L:
    print("Yes")
else:
    print("No")

-import math -print(("Yes" if math.sqrt(X).is_integer() else "No")) +L = [x * x for x in range(1, 1001)] +if X in L: +    print("Yes") +else: +    print("No")