"use strict";
function Main(input) {
  const args = input.split(' ').map(m => parseInt(m));
  const r = args.shift();
  const D = args.shift();
  let x = args.shift();

  for (let i = 0; i < 10; i++) {
    x = r * x - D;
    console.log(x);
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
