import scala.io._

object Main extends App {
  val n = StdIn.readLine.toInt

  val a = (n / 4)
  val b = (n / 7)

  val combos = for {
    i <- 0 to a
    j <- 0 to b
  } yield i*4 + j*7

  if (combos.toList.contains(n))
    println("Yes")
  else
    println("No")
}
