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