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