r, D, x_2000 = [int(i) for i in input().strip().split()]

x_prev = x_2000
i = 1
while True:
    x = r * x_prev - D
    print(x)
    x_prev = x
    if i == 10:
        break
    i += 1 int(i) for i in input().strip().split() for i in input().strip().split() i input().strip().split() ().strip().split ().strip() ().strip () input strip split for i in input().strip().split() int(i) int i r, D, x_2000 = [int(i) for i in input().strip().split()] r [int(i) for i in input().strip().split()] D x_2000 x_prev = x_2000 x_prev x_2000 i = 1 i 1 while True:
    x = r * x_prev - D
    print(x)
    x_prev = x
    if i == 10:
        break
    i += 1 True x = r * x_prev - D x r * x_prev - D r * x_prev r x_prev D print(x) print x x_prev = x x_prev x if i == 10:
        break
     i == 10 i 10 break i += 1 i 1 x_2000 = [int(i) for i in input().strip().split()] [int(i) for i in input().strip().split()] x_2000 x = r * x_prev - D r * x_prev - D x x_prev = x_2000 x_2000 x_prev r, D, x_2000 = [int(i) for i in input().strip().split()] [int(i) for i in input().strip().split()] r x_prev = x x x_prev i += 1 1 i D, x_2000 = [int(i) for i in input().strip().split()] [int(i) for i in input().strip().split()] D i = 1 1 i
r, D, x_2000 = [int(i) for i in input().strip().split()]

x_prev = x_2000
i = 1
while True:
    x = r * x_prev - D
    print(x)
    x_prev = x
    if i == 10:
        break
    i += 1
