open System

let rec calc (r: int) (d: int) (x2000: int) (year: int): int =
    match year with
    | 2000 -> x2000
    | y when y > 2000 -> r * (calc r d x2000 (year - 1)) - d
    | _ -> failwith "n < 2000"

[<EntryPoint>]
let main _ =
    let input = Console.ReadLine()
    let [| r; d; x2000 |] = input.Split(' ') |> Array.map Int32.Parse
    
    [2001..2010]
    |> List.map (calc r d x2000)
    |> List.iter (printfn "%d")
    
    0
