import numpy as np
a, b = map(int, input().split())
if  b == 100:
    z = a*100 + b
elif b >= 10 and  b < 100:
    z = a*100 + b
elif b >= 0 and  b < 10:
    z = a*10 + b

e = np.sqrt(z)
f = float(e) - int(e)
if bool(f) == False:
    print("Yes")
else:
    print("No")