a,b=map(int,input().split()) if a==b: print('Yes') elif (a==4 and b==2) or (a==2 and b==4): print('Yes') else: print('No')