r,D,X = map(int,input().split())
for i in range(10):
    print(r*X-D)
    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)
    X = r*X-D i range(10) range 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 D,X = map(int,input().split()) map(int,input().split()) D X = r*X-D r*X-D X 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())
for i in range(10):
    print(r*X-D)
    X = r*X-D