import math
a, b = list(map(int, input().split()))
x = a * 100 + b

flag = False
for i in range(1,int(math.sqrt(x))+1):
    if i ** 2 == x:
        flag =True
        break

print("Yes" if flag else "No")