function Main(s){
  var n = +s;
  var ans = "No";
  for(var i = 0; i < n; i++){
    if(i * 4 > n)break;
    if((n - i * 4) % 7 === 0)ans = "Yes";
  }
  console.log(ans);
}

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