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