(defn input []
  (list
    (->> (clojure.string/split (read-line) #"\s")
      (map #(Integer/parseInt %)))
    (->> (clojure.string/split (read-line) #"\s")
      (map #(Integer/parseInt %)))))

(defn TollGates [[[N M X] As]]
  (->> As
    (split-with #(< % X))
    (map count)
    (apply min)))

(->> (input)
  TollGates
  println)