import scala.io.StdIn

object Main extends App {

  val n = StdIn.readLine().toInt

  val a = for (i <- 0 to n / 4;
               j <- 0 to n / 7) yield 4 * i + j * 7 == n

  println(if (a.exists(p => p)) "Yes" else "No")
}
