type ABC(stream:System.IO.TextReader) =
  member this.Scan3 f = stream.ReadLine().Split() |> Array.map f |> (fun a -> (a.[0], a.[1], a.[2]))

let iter f a = Seq.initInfinite id |> Seq.scan (fun acc -> fun _ -> f acc) a

let util = ABC(stdin)

let r, d, a = util.Scan3 int64


iter (fun x -> r * x - d) a
|> Seq.skip 1
|> Seq.take 10
|> Seq.iter (printfn "%d")
