n = int(input()[-2:]) m = int(input()[-2:]) if m % 2 == 1: print("No") elif n % 2 == 0: print("Yes") else: print("Yes" if m >= 10 else "No")