let answer r d x =
  let rec hoge r d x n =
    if n = 1 then
      string_of_int (r * x - d)
    else
      string_of_int (r * x -d) ^ "\n" ^ hoge r d (r * x -d) (n - 1)
  in
  hoge r d x 10

let () = Scanf.scanf "%d %d %d" (fun r d x -> print_endline ((answer r d x)))
