fun main(args: Array<String>) {
    val input = readLine()!!.trim().split(" ").filterNot(String::isBlank).map(String::toInt)
    val r = input[0]
    val d = input[1]
    val xi = IntArray(11) {
        0
    }
    xi[0] = input[2]
    for (i in 0 until xi.lastIndex) {
        xi[i + 1] = r * xi[i] - d
    }
    println(xi.drop(1).joinToString("\n"))
}