x=[0]*11
r,D,x[0]=map(int,input().split())
for i in range(1,11):
  x[i]=x[i-1]*r-D
  print(x[i]) x=[0]*11 x [0]*11 [0] 0 11 r,D,x[0]=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x[0] x 0 for i in range(1,11):
  x[i]=x[i-1]*r-D
  print(x[i]) i range(1,11) range 1 11 x[i]=x[i-1]*r-D x[i] x i x[i-1]*r-D x[i-1]*r x[i-1] x i-1 i 1 r D print(x[i]) print x[i] x i r,D,x[0]=map(int,input().split()) map(int,input().split()) r D,x[0]=map(int,input().split()) map(int,input().split()) D x=[0]*11 [0]*11 x
x=[0]*11
r,D,x[0]=map(int,input().split())
for i in range(1,11):
  x[i]=x[i-1]*r-D
  print(x[i])