import std.stdio, std.array, std.conv, std.typecons, std.algorithm;

T diff(T)(const ref T a, const ref T b) { return a > b ? a - b : b - a; }

void main() {
    immutable input = readln.split.to!(ulong[]);
    immutable r = input[0], d = input[1], x2k = input[2];

    ulong x = x2k;
    for(ulong i = 0; i < 10; i++) {
        x = r * x - d;
        writeln(x);
    }
}
