object Main extends App {
  val N = io.StdIn.readLine.toInt

  def div(n: Int): Boolean = {
    if (n % 4 == 0 || n % 7 == 0 || n == 0) return true
    else if (n != 4 && n <= 6) return false
    else return div(n - 7) || div(n - 4)
  }

  val out = if (div(N)) "Yes" else "No"

  println(out)
}
