s=0 m,n = map(int,input().split()) for x in range(1,m): y=m-x if x+y==m and x*y==n: s+=1 else: s+=0 if s>0: print("Yes") else: print("No")