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