x = [None]*11

r, d, x[0] = map(int, input().split())

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

r, d, x[0] = map(int, input().split())

for i in range(10):
    x[i+1] = r*x[i] - d
    print(x[i+1])