#!/usr/bin/ python3.8 import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(read()) def solve(N): if N & 1: # 引かなければいけない return N % 4 != 0 # 引いてはならない return (N - 1) % 4 != 0 print('Yes' if solve(N) else 'No')