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