r,D,x = map(int,input().split())
tmp = x
for i in range(1,11):
    tmp = r*tmp - D
    x += D
    print(tmp) 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(1,11):
    tmp = r*tmp - D
    x += D
    print(tmp) i range(1,11) range 1 11 tmp = r*tmp - D tmp r*tmp - D r*tmp r tmp D x += D x D print(tmp) print tmp tmp = x x tmp x += D D x tmp = r*tmp - D r*tmp - D tmp r,D,x = map(int,input().split()) map(int,input().split()) r 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())
tmp = x
for i in range(1,11):
    tmp = r*tmp - D
    x += D
    print(tmp)
