l = int(input()) if l[1] % 2 == 1: print('NO') else: if (l[0] + l[1]//10) % 2 == 0: print('YES') else: print('NO')