# mod 4すると右辺は常に 0 or 1 or 2 # 左辺PはP=2のとき2 mod 4、それ以外では1 mod 4のときにYesか P = int(input()) ans = 'No' if P == 2: ans = 'Yes' if P%4 == 1: ans = 'Yes' print(ans)