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

(defn SmallAndLargeInteger [[A B K]]
  (->>  (concat (take K (range A (inc B))) (take K (take-while #(<= A %) (iterate dec B))))
    (apply sorted-set)
    (map println-str)
    (apply str)))

(->> (input)
  SmallAndLargeInteger
  print)