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

