let () =
    let main () =
        let r, d, x2000 = Scanf.sscanf (read_line ()) "%d %d %d" (fun r d x2000 -> r, d, x2000) in
        let rec loop i x =
            if i > 0 then (
                let x = r * x - d in
                Printf.printf "%d\n" x;
                loop (i - 1) x
            )
        in
        loop 10 x2000

    in
    main ()