R, D, x = map(int, input().split())
for _ in range(10):
  x = R*x - D
  print(x) R, D, x = map(int, input().split()) R map(int, input().split()) map int input().split() ().split () input split D x for _ in range(10):
  x = R*x - D
  print(x) _ range(10) range 10 x = R*x - D x R*x - D R*x R x D print(x) print x x = R*x - D R*x - D x R, D, x = map(int, input().split()) map(int, input().split()) R x = map(int, input().split()) map(int, input().split()) x D, x = map(int, input().split()) map(int, input().split()) D
R, D, x = map(int, input().split())
for _ in range(10):
  x = R*x - D
  print(x)