r,D,x=map(int,input().split())

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

X=[x]
for i in range(10):
    a = r*X[i]-D
    X.append(a)
    print(a)