'use strict'

function main(input) {

  let n = Number(input);
  let ans = 'No';

  while (n >= 0) {
    if (n % 7 === 0) {
      ans = 'Yes';
      break;
    }
    n -= 4;
  }

  console.log(ans);
}

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