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

def X(n):    
    if n == 1:return x_2000
    else:return r*X(n-1)-d
lis=[X(n) for n in range(2,12)]
[print(i) for i in lis] r,d,x_2000=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x_2000 def X(n):    
    if n == 1:return x_2000
    else:return r*X(n-1)-d X if n == 1:return x_2000
    else:return r*X(n-1)-d n == 1 n 1 n n X(n) for n in range(2,12) for n in range(2,12) n range(2,12) range 2 12 for n in range(2,12) X(n) X n lis=[X(n) for n in range(2,12)] lis [X(n) for n in range(2,12)] print(i) for i in lis for i in lis i lis for i in lis print(i) print i [print(i) for i in lis] d,x_2000=map(int,input().split()) map(int,input().split()) d r,d,x_2000=map(int,input().split()) map(int,input().split()) r def X(n):    
    if n == 1:return x_2000
    else:return r*X(n-1)-d def X(n):    
    if n == 1:return x_2000
    else:return r*X(n-1)-d X x_2000=map(int,input().split()) map(int,input().split()) x_2000 lis=[X(n) for n in range(2,12)] [X(n) for n in range(2,12)] lis

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

def X(n):    
    if n == 1:return x_2000
    else:return r*X(n-1)-d
lis=[X(n) for n in range(2,12)]
[print(i) for i in lis]