let () =
  let rec loop b = function
      0 -> Printf.printf "%d\n" b
    | i -> let p = (float b) *. 1.05 in
           let rm = (int_of_float p) mod 1000 in
           loop ((int_of_float p) + (if rm = 0 then 0 else 1000-rm)) (i-1)
  in loop 100000 (read_int ());;