x,y = map(int,input().split())
k = 100
if y < 10:
    k = 10
if y >99:
    k = 1000

c = y + x * k
print(c)
for i in range(0,11000):
    if c == i ** 2:
        print('Yes')
        k = 0
        
if k != 0:
    print('No')
        