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

(defn inputs [N]
  (if (zero? N)
    nil
    (cons (inner-input) (inputs (dec N)))))

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

(defn BitterAlchemy [[N X Ms]]
  (+ N (quot (- X (apply + Ms)) (apply min Ms))))

(-> (input)
  BitterAlchemy
  println)