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