N_M = list(map(int, input().split())) N = N_M[0] M = N_M[1] if M % 10 == 0 or (N % 2 == 0 and M % 2 == 0): print("YES") else: print("NO")