n, x = map(int, input().split()) if x == 1 and n > 1: print('Yes') else: print('No')