import sys
input=sys.stdin.readline

r,d,x=map(int,input().split())
for _ in range(10):
	print(r*x-d)
	x=r*x-d import sys sys input=sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline 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(r*x-d)
	x=r*x-d _ range(10) range 10 print(r*x-d) print r*x-d r*x r x d x=r*x-d x r*x-d r*x r x d r,d,x=map(int,input().split()) map(int,input().split()) r d,x=map(int,input().split()) map(int,input().split()) d x=r*x-d r*x-d x input=sys.stdin.readline sys.stdin.readline input x=map(int,input().split()) map(int,input().split()) x
import sys
input=sys.stdin.readline

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