def bbb(x,r,d):
	return r*x-d

r,d,x=map(int,input().split())
for _ in range(10):
	print(bbb(x,r,d))
	x=bbb(x,r,d) def bbb(x,r,d):
	return r*x-d bbb return r*x-d r*x-d r*x r x d x x r r d d r,d,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x for _ in range(10):
	print(bbb(x,r,d))
	x=bbb(x,r,d) _ range(10) range 10 print(bbb(x,r,d)) print bbb(x,r,d) bbb x r d x=bbb(x,r,d) x bbb(x,r,d) bbb x r d r,d,x=map(int,input().split()) map(int,input().split()) r def bbb(x,r,d):
	return r*x-d def bbb(x,r,d):
	return r*x-d bbb x=bbb(x,r,d) bbb(x,r,d) x x=map(int,input().split()) map(int,input().split()) x d,x=map(int,input().split()) map(int,input().split()) d
def bbb(x,r,d):
	return r*x-d

r,d,x=map(int,input().split())
for _ in range(10):
	print(bbb(x,r,d))
	x=bbb(x,r,d)