r,D,X=map(int,input().split())

a=X

for i in range(10):
    a=r*a-D
    print(a) r,D,X=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D X a=X a X for i in range(10):
    a=r*a-D
    print(a) i range(10) range 10 a=r*a-D a r*a-D r*a r a D print(a) print a a=r*a-D r*a-D a r,D,X=map(int,input().split()) map(int,input().split()) r a=X X a D,X=map(int,input().split()) map(int,input().split()) D X=map(int,input().split()) map(int,input().split()) X
r,D,X=map(int,input().split())

a=X

for i in range(10):
    a=r*a-D
    print(a)