A, B = sorted(map(int, input().split())) if A == B: print('Yes') elif A == 0 and B == 1: print('Yes') else: print('No')