r,D,x=map(int,input().split())
count=0
while count<10:
    print(r*x-D)
    x=r*x-D
    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<10:
    print(r*x-D)
    x=r*x-D
    count+=1 count<10 count 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 count+=1 count 1 count=0 0 count x=r*x-D r*x-D x count+=1 1 count D,x=map(int,input().split()) map(int,input().split()) D 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())
count=0
while count<10:
    print(r*x-D)
    x=r*x-D
    count+=1