'use strict'
const Main = (input) => {
  const N = parseInt(input)

  let ans = "No";
  loop1:
  for (let i = 0; i <= 25; i++) {
    for (let j = 0; j <= 14; j++) {
      if (4 * i + 7 * j === N) {
        let ans = "Yes";
        break loop1;
      }
    }
  }
  console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));