N = int(input()) M = int(input()) if N%2: if not M%10: print("Yes") else: print("No") else: if M%2: print("No") else: print("Yes")