N = int(input()) if N & 1: print('NO') else: print('YES')