r,d,x2000 = map(int,input().split())
x = []
y = 0
for i in range(10):
    y = r*x2000 - d
    x.append(y)
    x2000 = y

for j in range(len(x)):
    print(x[j]) r,d,x2000 = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x2000 x = [] x [] y = 0 y 0 for i in range(10):
    y = r*x2000 - d
    x.append(y)
    x2000 = y i range(10) range 10 y = r*x2000 - d y r*x2000 - d r*x2000 r x2000 d x.append(y) x.append x append y x2000 = y x2000 y for j in range(len(x)):
    print(x[j]) j range(len(x)) range len(x) len x print(x[j]) print x[j] x j x2000 = y y x2000 y = 0 0 y d,x2000 = map(int,input().split()) map(int,input().split()) d x2000 = map(int,input().split()) map(int,input().split()) x2000 y = r*x2000 - d r*x2000 - d y r,d,x2000 = map(int,input().split()) map(int,input().split()) r x = [] [] x
r,d,x2000 = map(int,input().split())
x = []
y = 0
for i in range(10):
    y = r*x2000 - d
    x.append(y)
    x2000 = y

for j in range(len(x)):
    print(x[j])