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

count=0
while count<=9:
    x=r*x-d
    print(x)
    count+=1
 r,d,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x count=0 count 0 while count<=9:
    x=r*x-d
    print(x)
    count+=1 count<=9 count 9 x=r*x-d x r*x-d r*x r x d print(x) print x count+=1 count 1 r,d,x=map(int,input().split()) map(int,input().split()) r x=r*x-d r*x-d x d,x=map(int,input().split()) map(int,input().split()) d count=0 0 count count+=1 1 count x=map(int,input().split()) map(int,input().split()) x
r,d,x=map(int,input().split())

count=0
while count<=9:
    x=r*x-d
    print(x)
    count+=1

