A,B=map(int,input().split()) if A==B or (A,B)==(4,2) or (A,B)==(2,4): print('Yes') else: print('No')