// Learn more about F# at http://fsharp.org
// See the 'F# Tutorial' project for more help.

open System

[<EntryPoint>]
let main argv = 

    let inputs = stdin.ReadLine().Split(' ') |> Array.map int

    let r = inputs.[0]
    let D = inputs.[1]
    let x = inputs.[2]

    //for i = 1 to 10 do
        //x <- r * x - D
        //printfn "%d" x
    let rec calcAndShow x n =
        if n <= 0 then
            0
        else
            let tmp = r * x - D
            printfn "%d" tmp
            calcAndShow tmp (n - 1)

    calcAndShow x 10
