function Main(input) {
  input = input.split("\n");
  var n = parseInt(input[0]);
  var ans ="No";
  for(i=0;i*7<=n;i++){
    for(j=0;j*4<=n-i*7;j++){
      if(n==i*7+j*4){
        ans="Yes";
      }
    }
  }
  console.log('%s', ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));