r,D,x = (int(a) for a in input().split())
count = 0
while count <= 9 :
    x = r * x - D
    print(x)
    count += 1 int(a) for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() int(a) int a r,D,x = (int(a) for a in input().split()) r (int(a) for a in input().split()) D x count = 0 count 0 while count <= 9 :
    x = r * x - D
    print(x)
    count += 1 count <= 9 count 9 x = r * x - D x r * x - D r * x r x D print(x) print x count += 1 count 1 count = 0 0 count count += 1 1 count x = r * x - D r * x - D x x = (int(a) for a in input().split()) (int(a) for a in input().split()) x r,D,x = (int(a) for a in input().split()) (int(a) for a in input().split()) r D,x = (int(a) for a in input().split()) (int(a) for a in input().split()) D
r,D,x = (int(a) for a in input().split())
count = 0
while count <= 9 :
    x = r * x - D
    print(x)
    count += 1
