r, d, x = map(int, input().split())
xi = x
for i in range(10):
  xi *=  r 
  xi -= d
  print(xi) r, d, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x xi = x xi x for i in range(10):
  xi *=  r 
  xi -= d
  print(xi) i range(10) range 10 xi *=  r xi r xi -= d xi d print(xi) print xi x = map(int, input().split()) map(int, input().split()) x r, d, x = map(int, input().split()) map(int, input().split()) r xi = x x xi xi *=  r r xi d, x = map(int, input().split()) map(int, input().split()) d xi -= d d xi
r, d, x = map(int, input().split())
xi = x
for i in range(10):
  xi *=  r 
  xi -= d
  print(xi)