void main() {
    int[] tmp = readln.split.to!(int[]);
    int r = tmp[0], d = tmp[1], x = tmp[2];
    foreach (i; 0 .. 10) {
        x = r * x - d;
        x.writeln;
    }
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.typecons;