r, d, x2000 = map(int, input().split())

for y in range(2001, 2011):
    x2000 = x2000*r - d
    print(x2000) r, d, x2000 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x2000 for y in range(2001, 2011):
    x2000 = x2000*r - d
    print(x2000) y range(2001, 2011) range 2001 2011 x2000 = x2000*r - d x2000 x2000*r - d x2000*r x2000 r d print(x2000) print x2000 x2000 = map(int, input().split()) map(int, input().split()) x2000 d, x2000 = map(int, input().split()) map(int, input().split()) d r, d, x2000 = map(int, input().split()) map(int, input().split()) r x2000 = x2000*r - d x2000*r - d x2000
r, d, x2000 = map(int, input().split())

for y in range(2001, 2011):
    x2000 = x2000*r - d
    print(x2000)
