r, D, x_2000 = map(int, input().split())

x = [0]*11
x[0] = x_2000

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

x = [0]*11
x[0] = x_2000

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