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