li = input().split()
x = int(li[2])
D = int(li[1])
r = int(li[0])

for i in range(0,10,1):
    xx = r*x -D
    print(xx)
    x = xx li = input().split() li input().split() ().split () input split x = int(li[2]) x int(li[2]) int li[2] li 2 D = int(li[1]) D int(li[1]) int li[1] li 1 r = int(li[0]) r int(li[0]) int li[0] li 0 for i in range(0,10,1):
    xx = r*x -D
    print(xx)
    x = xx i range(0,10,1) range 0 10 1 xx = r*x -D xx r*x -D r*x r x D print(xx) print xx x = xx x xx r = int(li[0]) int(li[0]) r D = int(li[1]) int(li[1]) D li = input().split() input().split() li x = int(li[2]) int(li[2]) x x = xx xx x xx = r*x -D r*x -D xx
li = input().split()
x = int(li[2])
D = int(li[1])
r = int(li[0])

for i in range(0,10,1):
    xx = r*x -D
    print(xx)
    x = xx
