a,b=map(int,input().split())
ab=int(str(a)+str(b))
j=0
for i in range(318):
    if i**2==ab:
        print("Yes")
        j=1
        break
    else:
        pass
if j==1:
    pass
else:
    print("No")