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