import scala.io.StdIn

object Main extends App {
  val n = StdIn.readLine.toInt
  val ans = if ((n % 7) == 0 || (n % 4) == 0) "Yes"
    else if ((7 until n by 7).exists(i => (n - i) % 4 == 0)) "Yes"
    else "No"
  println(ans)
}