r,d,x=map(int,input().split())
listr=[]
while len(listr)<=9:
  x=r*x-d
  listr.append(x)
  
[print(i) for i in listr] r,d,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x listr=[] listr [] while len(listr)<=9:
  x=r*x-d
  listr.append(x)
   len(listr)<=9 len(listr) len listr 9 x=r*x-d x r*x-d r*x r x d listr.append(x) listr.append listr append x print(i) for i in listr for i in listr i listr for i in listr print(i) print i [print(i) for i in listr] r,d,x=map(int,input().split()) map(int,input().split()) r x=map(int,input().split()) map(int,input().split()) x x=r*x-d r*x-d x d,x=map(int,input().split()) map(int,input().split()) d listr=[] [] listr
r,d,x=map(int,input().split())
listr=[]
while len(listr)<=9:
  x=r*x-d
  listr.append(x)
  
[print(i) for i in listr]