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