import itertools
x=[0]*1000
r,D,x[0]=map(int,input().split())

for i in range(0,99):
    x[i+1]=r*x[i]-D
for i in range(10):
    print(x[i+1]) import itertools itertools x=[0]*1000 x [0]*1000 [0] 0 1000 r,D,x[0]=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x[0] x 0 for i in range(0,99):
    x[i+1]=r*x[i]-D i range(0,99) range 0 99 x[i+1]=r*x[i]-D x[i+1] x i+1 i 1 r*x[i]-D r*x[i] r x[i] x i D for i in range(10):
    print(x[i+1]) i range(10) range 10 print(x[i+1]) print x[i+1] x i+1 i 1 D,x[0]=map(int,input().split()) map(int,input().split()) D x=[0]*1000 [0]*1000 x r,D,x[0]=map(int,input().split()) map(int,input().split()) r
import itertools
x=[0]*1000
r,D,x[0]=map(int,input().split())

for i in range(0,99):
    x[i+1]=r*x[i]-D
for i in range(10):
    print(x[i+1])
