S = int(input()) if S == 2: print('No') exit() print("yes") if S % 2 == 0 else print('No')