object Main {
  import scala.io.StdIn._
  def main(args: Array[String]): Unit = {
    def readInts() = readLine().split(' ').map(_.toInt)
    val Array(n, m, _*) = readInts()
    val votesOfItems = readInts()
    val threahold = 4 * m
    def isOk(votes: Int): Booean = votes < threahold
    println(votesOfItems.count(isOk) > m)
  }
}
