n = int(input()) m = int(input()) if n % 2 == 0: if m % 2 == 0: print('Yes') else: print('No') else: if m >= 10 and m % 2 == 0: print('Yes') else: print('No')