
r,d,x2000 = map(int,input().split())
X = [x2000]

for i in range(10):
    X.append(r*X[i]-d)

for i in range(1,len(X)):
    print(X[i])
 r,d,x2000 = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x2000 X = [x2000] X [x2000] x2000 for i in range(10):
    X.append(r*X[i]-d) 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 for i in range(1,len(X)):
    print(X[i]) i range(1,len(X)) range 1 len(X) len X print(X[i]) print X[i] X i r,d,x2000 = map(int,input().split()) map(int,input().split()) r x2000 = map(int,input().split()) map(int,input().split()) x2000 X = [x2000] [x2000] X d,x2000 = map(int,input().split()) map(int,input().split()) d

r,d,x2000 = map(int,input().split())
X = [x2000]

for i in range(10):
    X.append(r*X[i]-d)

for i in range(1,len(X)):
    print(X[i])

