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