N = int(input()) M = int(input()) if M % 2 == 1: print("No") elif N % 2 == 0 and M % 2 == 0: print("Yes") elif N % 2 == 1: if M >= 10 and (M - 10) % 2 == 0: print("Yes") else: print("No")