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