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

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

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

  println(out)
}
