x=[]
r,D,a=map(int,input().split())
x.append(a)
for i in range(10):
   x.append(r*x[i]-D)
   print(x[i+1]) x=[] x [] r,D,a=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D a x.append(a) x.append x append a for i in range(10):
   x.append(r*x[i]-D)
   print(x[i+1]) i range(10) range 10 x.append(r*x[i]-D) x.append x append r*x[i]-D r*x[i] r x[i] x i D print(x[i+1]) print x[i+1] x i+1 i 1 D,a=map(int,input().split()) map(int,input().split()) D a=map(int,input().split()) map(int,input().split()) a x=[] [] x r,D,a=map(int,input().split()) map(int,input().split()) r
x=[]
r,D,a=map(int,input().split())
x.append(a)
for i in range(10):
   x.append(r*x[i]-D)
   print(x[i+1])