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

tmp = x_2000
for i in range(1,11):
    tmp = r * tmp - D
    print(tmp) r, D, x_2000 = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x_2000 tmp = x_2000 tmp x_2000 for i in range(1,11):
    tmp = r * tmp - D
    print(tmp) i range(1,11) range 1 11 tmp = r * tmp - D tmp r * tmp - D r * tmp r tmp D print(tmp) print tmp r, D, x_2000 = map(int,input().split()) map(int,input().split()) r D, x_2000 = map(int,input().split()) map(int,input().split()) D x_2000 = map(int,input().split()) map(int,input().split()) x_2000 tmp = r * tmp - D r * tmp - D tmp tmp = x_2000 x_2000 tmp
r, D, x_2000 = map(int,input().split())

tmp = x_2000
for i in range(1,11):
    tmp = r * tmp - D
    print(tmp)
