object Main extens App{
  override def main(args:Array[String])={
    var num = readInt
    if(num%4==0) println("Yes")
    else if(num%7==0) println("Yes")
    else{
      var n = num%4
      var flag = false
      for(i <- 1 to n if !flag){
        var money = 4*i
        var left = num-money
        if(left%7==0){
          println("Yes")
          flag = true
        }
    }
    println("No")  
  }
}