import scala.io.StdIn


object Main extends App {
  val Array(r, d, x)  = StdIn.readLine.split(" ").map(_.toInt)

  def solve(r: Int, d: Int, x: Int) : Unit  = {
    (0 to 9).foldLeft(x) {(acc, v) =>
      println(r * acc - d)
      r * acc - d
    }
  }
  (solve(r, d, x))

}
  

