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