function main(input){
  var int = Number.parseInt(input);
  var sum = 0;
  var result = 'No';
  
  CakeDonut:
  for(let i=0;sum<=int;i++){
    for(let j=0;sum<=int;j++){
      sum = 4*i+7+j;
      if(sum === int){
        result = 'Yes';
        break CakeDonut;
      }
    }
  }
  console.log(result);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));