'use strict'
function Main(input) {
  input = input.split("\n")
  let N = parseInt(input[0])
  if (N === 1 || N === 5) {
    console.log('No')
    return
  }
  if (N % 4 === 0 || N % 4 === 1) {
    console.log('Yes')
    return
  }
  console.log('No')
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))