r, d, x = map(int, input().split())
for i in range(2001, 2011):
  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 i in range(2001, 2011):
  x = r * x - d
  print(x) i range(2001, 2011) range 2001 2011 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 d, x = map(int, input().split()) map(int, input().split()) d x = map(int, input().split()) map(int, input().split()) x
r, d, x = map(int, input().split())
for i in range(2001, 2011):
  x = r * x - d
  print(x)