"use strict"
function Main(input) {
  input = Number(input.trim());

  let flg = false;
  for(let a=0;a<26;++a){
    for(let b=0;b<15; ++b){
      let cnt = 4*a+7*b;
      if(cnt==input) {
        flg=true;
        break;
      }
    }
  }


  console.log(flg?'Yes':'No');
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));