function Main(input) {
  var n = input.split("\n")[0];
  var n_d;

  do {
    n_d = n % 4;
    n -= 7;
  } while (n_d > 0 && n > 0);
  console.log(n_d === 0 || n === 0 ? "Yes":"No");
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));