r, d, xs = map(int, input().split())
li = []
xi = 0
for i in range(10):
    xi = r*xs-d
    li.append(xi)
    xs = xi

for i in li:
    print(i) r, d, xs = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d xs li = [] li [] xi = 0 xi 0 for i in range(10):
    xi = r*xs-d
    li.append(xi)
    xs = xi i range(10) range 10 xi = r*xs-d xi r*xs-d r*xs r xs d li.append(xi) li.append li append xi xs = xi xs xi for i in li:
    print(i) i li print(i) print i li = [] [] li d, xs = map(int, input().split()) map(int, input().split()) d xs = map(int, input().split()) map(int, input().split()) xs r, d, xs = map(int, input().split()) map(int, input().split()) r xi = 0 0 xi xi = r*xs-d r*xs-d xi xs = xi xi xs
r, d, xs = map(int, input().split())
li = []
xi = 0
for i in range(10):
    xi = r*xs-d
    li.append(xi)
    xs = xi

for i in li:
    print(i)