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

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

for i in range(2001,2011):
    x[i] = r * x[i-1] - d
    print(x[i])
