r,d,x  = map(int,input().split())
t = 2000
while t <= 2009:
  x = r*x-d
  print(x)
  t += 1 r,d,x  = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x t = 2000 t 2000 while t <= 2009:
  x = r*x-d
  print(x)
  t += 1 t <= 2009 t 2009 x = r*x-d x r*x-d r*x r x d print(x) print x t += 1 t 1 r,d,x  = map(int,input().split()) map(int,input().split()) r d,x  = map(int,input().split()) map(int,input().split()) d t += 1 1 t x = r*x-d r*x-d x x  = map(int,input().split()) map(int,input().split()) x t = 2000 2000 t
r,d,x  = map(int,input().split())
t = 2000
while t <= 2009:
  x = r*x-d
  print(x)
  t += 1