object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val iobuf = readLine.split(" ").map(_.toInt).head
    var ans = false
    for (i <- (iobuf / 7) to 0 by -1; j <- 0 to (iobuf / 4)) {
      if (7 * i + 4 * j == iobuf) ans = true
    }
    println(if(ans) "Yes" else "No")
  }
}
