import sys
r,D,x = map(int,input().split())

if not ( 2 <= r <= 5 ): sys.exit()
if not ( 1 <= D <= 100 ): sys.exit()
if not ( D < x <= 200 ): sys.exit()

before_x = x
for I in range(10):
    print( r * before_x - D)
    before_x = r * before_x - D import sys sys r,D,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x if not ( 2 <= r <= 5 ): sys.exit() not ( 2 <= r <= 5 ) 2 <= r <= 5 2 <= r 2 r 5 if not ( 1 <= D <= 100 ): sys.exit() not ( 1 <= D <= 100 ) 1 <= D <= 100 1 <= D 1 D 100 if not ( D < x <= 200 ): sys.exit() not ( D < x <= 200 ) D < x <= 200 D < x D x 200 before_x = x before_x x for I in range(10):
    print( r * before_x - D)
    before_x = r * before_x - D I range(10) range 10 print( r * before_x - D) print r * before_x - D r * before_x r before_x D before_x = r * before_x - D before_x r * before_x - D r * before_x r before_x D r,D,x = map(int,input().split()) map(int,input().split()) r x = map(int,input().split()) map(int,input().split()) x before_x = x x before_x D,x = map(int,input().split()) map(int,input().split()) D before_x = r * before_x - D r * before_x - D before_x
import sys
r,D,x = map(int,input().split())

if not ( 2 <= r <= 5 ): sys.exit()
if not ( 1 <= D <= 100 ): sys.exit()
if not ( D < x <= 200 ): sys.exit()

before_x = x
for I in range(10):
    print( r * before_x - D)
    before_x = r * before_x - D