'use strict'
 
function main(n) {
  let num = n.split("\n")[0]*1;
  let ans = "No"
  for(let s = 0; s<=100; s++ ){
  	for(let f = 0; f<=100; f++){
    	if(7*s + 4*f === num){
          ans = "Yes";
        }
    }
  }
  
  
  console.log(ans);
  
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));