r, d, x0 = map(int, input().split())
x = [x0]
for i in range(10):
    x.append(r*x[-1] - d)
print(*x[1:], sep='\n') r, d, x0 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x0 x = [x0] x [x0] x0 for i in range(10):
    x.append(r*x[-1] - d) i range(10) range 10 x.append(r*x[-1] - d) x.append x append r*x[-1] - d r*x[-1] r x[-1] x -1 d print(*x[1:], sep='\n') print *x[1:] x[1:] x 1: 1 sep='\n' sep '\n' r, d, x0 = map(int, input().split()) map(int, input().split()) r x = [x0] [x0] x d, x0 = map(int, input().split()) map(int, input().split()) d x0 = map(int, input().split()) map(int, input().split()) x0
r, d, x0 = map(int, input().split())
x = [x0]
for i in range(10):
    x.append(r*x[-1] - d)
print(*x[1:], sep='\n')