r,d,x = map(int,input().split())
l = [0]*15
l[0] = x
for i in range(1,15):
    l[i] = r * l[i-1] - d
for i in range(1,11):
    print(l[i]) r,d,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x l = [0]*15 l [0]*15 [0] 0 15 l[0] = x l[0] l 0 x for i in range(1,15):
    l[i] = r * l[i-1] - d i range(1,15) range 1 15 l[i] = r * l[i-1] - d l[i] l i r * l[i-1] - d r * l[i-1] r l[i-1] l i-1 i 1 d for i in range(1,11):
    print(l[i]) i range(1,11) range 1 11 print(l[i]) print l[i] l i r,d,x = map(int,input().split()) map(int,input().split()) r x = map(int,input().split()) map(int,input().split()) x l = [0]*15 [0]*15 l d,x = map(int,input().split()) map(int,input().split()) d
r,d,x = map(int,input().split())
l = [0]*15
l[0] = x
for i in range(1,15):
    l[i] = r * l[i-1] - d
for i in range(1,11):
    print(l[i])