N_str = input() M_str = input() if len(N_str) > 1000 or len(M_str) > 1000: print("Please enter numbers with less than 1001 digits.") exit() N = int(N_str) M = int(M_str) total = 100*N + 10*M if N % 2 == 0 and M % 2 == 0: print("Yes") elif M % 10 == 0: if total % 2 == 0: print("Yes") else: print("No")