fun main (args : Array<String>) {
	val (n1, n2, n3) = readLine()!!.split(" ").map(String::toInt)
	val r : Int = n1.toInt()
	val D : Int = n2.toInt()
	val x : Int = n3.toInt()
	var num : Int = (r * x) - D
	var result : Int = 0
	println("${num}")
	for (i in 1..9) {
		result = (r * num) - D
		num = result
		println("${result}")
	}
}