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