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