r, d, x = map(int, input().split())
first = r*x - d
ls = [first]
for i in range(9):
    tmp = (ls[len(ls) - 1]) * r - d
    ls.append(tmp)

for i in ls:
    print(i)
 r, d, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x first = r*x - d first r*x - d r*x r x d ls = [first] ls [first] first for i in range(9):
    tmp = (ls[len(ls) - 1]) * r - d
    ls.append(tmp) i range(9) range 9 tmp = (ls[len(ls) - 1]) * r - d tmp (ls[len(ls) - 1]) * r - d (ls[len(ls) - 1]) * r ls[len(ls) - 1] ls len(ls) - 1 len(ls) len ls 1 r d ls.append(tmp) ls.append ls append tmp for i in ls:
    print(i) i ls print(i) print i d, x = map(int, input().split()) map(int, input().split()) d tmp = (ls[len(ls) - 1]) * r - d (ls[len(ls) - 1]) * r - d tmp ls = [first] [first] ls first = r*x - d r*x - d first r, d, x = map(int, input().split()) map(int, input().split()) r x = map(int, input().split()) map(int, input().split()) x
r, d, x = map(int, input().split())
first = r*x - d
ls = [first]
for i in range(9):
    tmp = (ls[len(ls) - 1]) * r - d
    ls.append(tmp)

for i in ls:
    print(i)

