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

x_2001 = r *x_2000 -D

memo = {2000: x_2000, 2001: x_2001}


def zen(n, x, r, D):
    x.append(r *x[n -1] -D)
    return x

x = []
x.append(x_2000)
for i in range(1, 11):
    print(zen(i, x, r, D)[-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_2001 = r *x_2000 -D x_2001 r *x_2000 -D r *x_2000 r x_2000 D memo = {2000: x_2000, 2001: x_2001} memo {2000: x_2000, 2001: x_2001} 2000 2000 x_2000 2001 2001 x_2001 def zen(n, x, r, D):
    x.append(r *x[n -1] -D)
    return x zen x.append(r *x[n -1] -D) x.append x append r *x[n -1] -D r *x[n -1] r x[n -1] x n -1 n 1 D return x x n n x x r r D D x = [] x [] x.append(x_2000) x.append x append x_2000 for i in range(1, 11):
    print(zen(i, x, r, D)[-1]) i range(1, 11) range 1 11 print(zen(i, x, r, D)[-1]) print zen(i, x, r, D)[-1] (i, x, r, D) zen i x r D -1 memo = {2000: x_2000, 2001: x_2001} {2000: x_2000, 2001: x_2001} memo x = [] [] 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 x_2001 = r *x_2000 -D r *x_2000 -D x_2001 x_2000 = map(int, input().split()) map(int, input().split()) x_2000 def zen(n, x, r, D):
    x.append(r *x[n -1] -D)
    return x def zen(n, x, r, D):
    x.append(r *x[n -1] -D)
    return x zen
r, D, x_2000 = map(int, input().split())

x_2001 = r *x_2000 -D

memo = {2000: x_2000, 2001: x_2001}


def zen(n, x, r, D):
    x.append(r *x[n -1] -D)
    return x

x = []
x.append(x_2000)
for i in range(1, 11):
    print(zen(i, x, r, D)[-1])

