import std.stdio;
import std.algorithm;
import std.math;
import std.conv;
import std.string;

auto readNum(T)(){
  return readln.chomp.to!T;
}

auto readNums(T)(){
  return readln.chomp.split.to!(T[]);
}

void main(){
  auto r = readNums!long;

  foreach(i; 0 .. 10){
    r[2] = r[0] * r[2] - r[1];
    writeln(r[2]);
  }
}