import std.stdio;

void main()
{
    int x, d, r;
    readf("%d %d %d\n", &x, &d, &r);
    f(x, d, r);
}

int i;

private int f(int x, int d, int r)
{
    i++;

    if (i <= 10)
    {
        writeln(x * r - d);
        return f(x, d, x * r - d);
    }

    return 0;
}
