r,d,x0=map(int,input().split())
list=[x0]
for i in range(1,11):
  list.append(r*list[i-1]-d)
list.remove(x0)
for x in range(10):
  print(list[x]) r,d,x0=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x0 list=[x0] list [x0] x0 for i in range(1,11):
  list.append(r*list[i-1]-d) i range(1,11) range 1 11 list.append(r*list[i-1]-d) list.append list append r*list[i-1]-d r*list[i-1] r list[i-1] list i-1 i 1 d list.remove(x0) list.remove list remove x0 for x in range(10):
  print(list[x]) x range(10) range 10 print(list[x]) print list[x] list x d,x0=map(int,input().split()) map(int,input().split()) d list=[x0] [x0] list r,d,x0=map(int,input().split()) map(int,input().split()) r x0=map(int,input().split()) map(int,input().split()) x0
r,d,x0=map(int,input().split())
list=[x0]
for i in range(1,11):
  list.append(r*list[i-1]-d)
list.remove(x0)
for x in range(10):
  print(list[x])