import scala.io.StdIn
object Main extends App {
  val N = StdIn.readLine().toInt
  val cakeCombinations = for {
    a <- 0 to N
    b <- 0 to N-1
    if 4 * a + 7 * b == N
  } yield (a, b)
  println(if (cakeCombinations.isEmpty) "No" else "Yes")
}
