a = str(input()).split()
n = 0
if int(a[1]) < 10:
    n = 10
elif int(a[1]) < 100:
    n = 100
else:
    n = 1000
b = int(a[0]) * n + int(a[1])
for i in range(1,1001):
    if b == i * i:
        print('Yes')
        break
else:
    print('No')