const main = function(input){
  var N = parseInt(input.trim());
  var near = N - N%7;
  var ans = false;
  
  for(var i= 0;i<near/7+1;i++){
	var rest = N - 7 * i;
    if(rest % 4 ===0){
      ans = true;
      break;
    }
  }
  if(ans) console.log("Yes");
  else console.log("No");
}


main(require("fs").readFileSync("/dev/stdin","utf-8"));