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

(defn RFN [[D N]]
  (-> (filter #(and (zero? (rem % (Math/pow 100 D)))
                 ((complement zero?) (rem % (Math/pow 100 (inc D)))))
        (range))
    (nth (dec N))))

(-> (input)
  RFN
  println)