import std.algorithm;
import std.concurrency;
import std.container;
import std.conv;
import std.functional;
import std.math;
import std.meta;
import std.random;
import std.range;
import std.stdio;
import std.string;
import std.traits;
import std.typecons;


void main() {
    auto input = readln.chomp.split.map!(to!long);
    auto r = input.front;
    input.popFront;
    auto D = input.front;
    input.popFront;
    auto x = input.front;
    input.popFront;

    iota(10).each!(_ => writeln(x = r * x - D));
}
