n = int(input()) m = n % 2 if m == 0: print("YES") elif m == 1: print("NO")