Problem:
 Score : 200 points    Problem Statement The development of algae in a pond is as follows.  Let the total weight of the algae at the beginning of the year i be x_i gram. For i≥2000 , the following formula holds:   x_{i+1} = rx_i - D   You are given r , D and x_{2000} . Calculate x_{2001} , ... , x_{2010} and print them in order.      Constraints  2 ≤ r ≤ 5  1 ≤ D ≤ 100  D < x_{2000} ≤ 200  All values in input are integers.         Input Input is given from Standard Input in the following format:  r  D  x_{2000}       Output Print 10 lines. The i -th line ( 1 ≤ i ≤ 10 ) should contain x_{2000+i} as an integer.        Sample Input 1 2 10 20      Sample Output 1 30
50
90
170
330
650
1290
2570
5130
10250  For example, x_{2001} = rx_{2000} - D = 2 \times 20 - 10 = 30 and x_{2002} = rx_{2001} - D = 2 \times 30 - 10 = 50 .       Sample Input 2 4 40 60      Sample Output 2 200
760
3000
11960
47800
191160
764600
3058360
12233400
48933560

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    r, D, x = [int(x) for x in input().split()]
    next_year = x
    for _ in range(10):
        next_year = r * next_year - D
        print(next_year)


if __name__ == '__main__':
    main()

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    r, D, x = [int(x) for x in input().split()]
    next_year = x
    for _ in range(10):
        next_year = r * next_year - D
        print(next_year)


if __name__ == '__main__':
    main()

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    r, D, x = [int(x) for x in input().split()]
    next_year = x
    for _ in range(10):
        next_year = r * next_year - D
        print(next_year)


if __name__ == '__main__':
    main()

Solution (Python):
r,D,x = map(int, input().split())
for i in range(1,11):
    x = r*x-D
    print(x)

Solution (Python):
r, D, x = map(int, input().split())

def algae(i):
    if i == 2000:
        return x
    return r * algae(i-1) - D


for i in range(2001, 2011):
    print(algae(i))

Solution (Python):
r, d, x2000 = map(int, input().split())

x = x2000
for i in range(10):
    next_x = r*x-d
    print(next_x)
    x = next_x

Solution (Python):
r,D,x=map(int,input().split())

for i in range(1,11):
    weight=r*x-D
    print(weight)
    x=r*x-D

Solution (Python):
r , D, x = map(int,input().split(' '))
for i in range(1,11):
    x=r*x-D
    print(x)

Solution (Python):
r,D,x=map(int,input().split())

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

Solution (Python):
r, d, x = map(int, input().split())
next = 0
for _ in range(10):
  next = r*x-d 
  print(next)
  x = next

Solution (Python):
r, d, x_init = map(int, input().split())

x = [r*x_init-d] * 10

for i in range(9):
  x[i+1] = r*x[i]-d
  
for i in range(10):
  print(x[i])

Solution (Python):
r,D,X=map(int,input().split())
for i in range(10):
    X=ans=r*X-D
    print(ans)

Solution (Python):
r,D,x=list(map(int,input().split()))
for i in range(10):
    x=r*x-D;print(x)

Solution (Python):
r, D, x=map(int, input().split())

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

Solution (Python):
r, d, x = map(int, input().split())
for _ in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r,d,x = (int(i) for i in input().split())
for i in range(10):
  x = r * x - d
  print(x)

Solution (Python):
r,D,x = map(int,input().split())
for i in range(10):
    x = r*x - D
    print(x)

Solution (Python):
r,d,x= map(int,input().split())
n = 10
for i in range(n):
    x = r*x-d
    print(x)

Solution (Python):
r,d,x = map(int,input().split())
for _ in range(10):
  x = r * x - d
  print(x)

Solution (Python):
r, D, x = map(int, input().split())
x_list = []
x_list.append(x)
temp_x = 0
for i in range(1, 11):
    temp_x = x_list[i-1]*r - D
    x_list.append(temp_x)
x_list.pop(0)
for j in x_list:
    print(j)

Solution (Python):
r, D, x= map(int, input().split())
s=[0]*(11)
s[0]=x
for i in range(10):
    if i ==0:
        s[i+1]=r*x-D
        print(s[i+1])
    else:
        s[i+1]=r*s[i]-D
        print(s[i+1])

Solution (Python):
r,d,x = map(int,input().split())

x_li = [0 for i in range(11)]
x_li[0] = x

for i in range(10):
    x_li[i+1] = r*x_li[i] -d
    
for i in range(10):
    print(x_li[i+1])

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
  x = r*x-d
  print(x)

Solution (Python):
num = input().split()
first = int(num[2])
for i in range(10):
  first = first * int(num[0]) - int(num[1])
  print(first)

Solution (Python):
r, d, x = map(int,input().split())
for i in range(10):
    x = r*x - d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
ans = r*x - d
for i in range(1, 11):
    print(ans)
    ans = r*ans - d

Solution (Python):
a,b,x=map(int,input().split())
for i in range(10):
    x=x*a-b
    print(x)

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
  x=r*x-d
  print(x)

Solution (Python):
r, d, x = map(int, input().split())

for i in range(10):
    x = r*x-d
    print(x)

Solution (Python):
r, D, x = map(int,input().split())
for i in range(10):
    x = r*x - D
    print(x)

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
    x=r*x-d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
    x = r*x-d
    print(x)

Solution (Python):
r, D, x = map(int, input().split())
for i in range(10):
    x = r*x - D
    print(x)

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
    x=r*x-d
    print(x)

Solution (Python):
x = [0]*11
r,d,x[0] = map(int,input().split())

for i in range(10):
    x[i+1] = r*x[i] - d
    print(x[i+1])

Solution (Python):
r, D, x_int = map(int, input().split())

x = x_int

for i in range(10):
    x_tmp = r*x - D
    print(x_tmp)
    x = x_tmp

Solution (Python):
r, d, x = map(int, input().split())

for i in range(10):
  x = r * x - d
  print(x)

Solution (Python):
r,D,x0 = map(int,input().split())

def x(i):
    if i == 0:
        return x0
    else:
        return(r*x(i-1)-D)

for i in range(1,11):
    print(x(i))

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
    x=r*x-d
    print(x)

Solution (Python):
def main(): 

    r,D,x = map(int, input().split())
    for _ in range(10):
        x = r*x - D
        print(x)
        

if __name__ == "__main__":
    main()

Solution (Python):
r, d, x_2000 = map(int,input().split())

for i in range(2,12):
    print(round((x_2000-d/(r-1))*r**(i-1)+d/(r-1)))

Solution (Python):

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

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

Solution (Python):
r, D, x = map(int,input().split())
for i in range(10):
    x=r*x-D
    print(x)

Solution (Python):
r,d,x=map(int, input().split())

for i in range(10):
    x=r*x-d
    print(x)

Solution (Python):

r, d, x = map(int, input().split())
for i in range(10):
    x = r*x -d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
  x = r * x - d
  print(x)

Solution (Python):

r,d,x2000 = map(int,input().split())


for i in range(10):
    if i == 0:
        ans = r*x2000-d
    else:
        ans = r*ans-d
    print(ans)

Solution (Python):
def saiki(n,d,r,x2000):
    if n==2000:
        return x2000
    
    else:
        return r*saiki(n-1,d,r,x2000)-d

r,d,x2000 = map(int,input().split())
for n in range(2001,2011):
    print(saiki(n,d,r,x2000))

Solution (Python):
r,d,x2000=map(int,input().split())

k = d/(r-1)

for n in range(2001,2011):
    xn = r**(n-2000)*(x2000-k)+k
    print(int(xn))

Solution (Python):
r, D, x = map(int, input().split())

ans = x
for i in range(10):
    ans = r*ans - D
    print(ans)

Solution (Python):
r,D,X=map(int,input().split())
for i in range (1,11):
      X=X*r-D
      print(X)

Solution (Python):
r,D,x0=map(int,input().split())
def n(t):
  return r*t-D
x1=n(x0)
x2=n(x1)
x3=n(x2)
x4=n(x3)
x5=n(x4)
x6=n(x5)
x7=n(x6)
x8=n(x7)
x9=n(x8)
x10=n(x9)
print(x1)
print(x2)
print(x3)
print(x4)
print(x5)
print(x6)
print(x7)
print(x8)
print(x9)
print(x10)

Solution (Python):
r,D,x = map(int,input().split())
for i in range(10):
  x = x*r - D
  print(x)

Solution (Python):
r,D,x = map(int,input().split())
ans = x
for i in range(1,11):
  ans = ans*r - D
  print(ans)

Solution (Python):
a=list(input().split())
r=int(a[0])
D=int(a[1])
x=int(a[2])
xtotal=[x]
for i in range(10):
  xtotal.append(r*xtotal[i]-D)
  print(xtotal[i+1])

Solution (Python):
r,D,x2000=map(int,input().split())
x=[x2000]

for i in range(10):
  x.append(x[i]*r-D)

for i in range(1,11):
  print(x[i])

Solution (Python):
r,D,x = map(int,input().split())
for i in range(10):
    x = r*x-D
    print(x)

Solution (Python):
r, D, x = list(map(int,input().split()))

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

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
  x = r * x - d
  print(x)

Solution (Python):
r,d,x2000=map(int, input().split())
last = x2000
for i in range(10):
    print(r*last-d)
    last = r*last-d

Solution (Python):
r,d,x=map(int, input().split())
for i in range(1,11):
    x=r*x-d
    print(x)

Solution (Python):





def main():
	line = input()
	vector = [int(x) for x in line.split()]
	r = vector[0]
	D = vector[1]
	x2000 = vector[2]
	y = x2000
	for i in range(10):
		y = r * y - D
		print(y)






if __name__ == "__main__":
	main()

Solution (Python):
r, d, x = list(map(int, input().split()))
for i in range(10):
    x = r*x-d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
for i in range(1, 11):
    print(r ** i * x - d * (r ** i - 1)//(r-1))

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
for _ in range(10):
  x = x * r - d
  print(x)

Solution (Python):

r, D, x = map(int, input().split())
for i in range(10):
    print(r * x - D)
    x = r * x - D

Solution (Python):
r, d, x = map(int, input().split())
index = 0
while index < 10:
    total = r * x - d
    print(total)
    x = total
    index += 1

Solution (Python):
r,D,x2000 = map(int, input().split())
x = x2000
for i in range(10):
  x = r*x - D
  print(x)

Solution (Python):
r, D, x = map(int, input().split())

i = 0
while i <= 9:
  x = r * x - D
  print(x)
  i += 1

Solution (Python):
A, B, C = map(int, input().split())
x = C
for i in range(10):
    x = A*x - B
    print(x)

Solution (Python):
import sys
input = sys.stdin.readline
r, D, prev_x = map(int, input().split())

for y in range(1, 11):
    x = r*prev_x - D
    print(x)
    prev_x = x

Solution (Python):
r,d,x=map(int,input().split())
for i in range(1,11):
    x = r * x - d
    print(x)

Solution (Python):

r, d, x = map(int, input().split(" "))

for i in range(1, 11):
    x = r * x - d
    print(x)

Solution (Python):
r,d,x=[int(i) for i in input().split()]
ini = r*x - d
print(ini)
for i in range(9):
    ini = r*ini - d
    print(ini)

Solution (Python):
r, d, x = map(int, input().split())
for _ in range(10):
  x = x * r - d
  print(x)

Solution (Python):
r, d, x = map(int, input().split())
for _ in range(10):
  x = x * r - d
  print(x)

Solution (Python):
def calc(r,D,x):
  y = r*x-D
  return y

r,D,x = map(int,input().split())
for i in range(10):
  x = calc(r,D,x)
  print(x)

Solution (Python):
r, D, x = map(int, input().split())
for i in range(10):
  x = r*x - D
  print(x)

Solution (Python):
r, D, x = map(int, input().split())
y = [0]*11
y[0] = x
for i in range(10):
  y[i+1] = y[i] * r - D
  print(y[i+1])

Solution (Python):
r,d,x = map(int, input().split())
for i in range(10):
    x = x*r-d
    print(x)

Solution (Python):
while True:
    try:
        r, d, x = map(int, input().split())
        for i in range(10):
            x = x * r - d
            print(x)
    except:
        break

Solution (Python):

r,D,x = list(map(int, input().split()))
ans = x
for i in range(1,11):
    ans = r*ans - D
    print(ans)

Solution (Python):
r, D, x_2000 = map(int, input().split())

def x(i):
    if i == 2000:
        return(x_2000)
    else:
        return(r * x(i-1) - D)

for j in range(2001, 2011):
    print(x(j))

Solution (Python):
r, D, x = map(int, input().split())
for i in range(10):
    ans = r*x-D
    print(ans)
    x = ans

Solution (Python):
import numpy as np
import sys

def main():
    input = sys.stdin.readline
    r, D, x2000 = map(int, input().split())
    dp = [0] * 11
    dp[0] = x2000
    for i in range(1, 11):
        dp[i] = r * dp[i-1] - D
        print(dp[i])


if __name__ == '__main__':
    main()

Solution (Python):
r, D, x = map(int, input().split())
for i in range(1, 11):
    x = r * x - D
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r,d,x = [int(i) for i in input().split()]
    
ans = x
for i in range(1,11):
    ans = r*ans - d
    print(ans)

Solution (Python):
r, d, x2000 = map(int, input().split())
def calc(r, d, before):
  return r * before - d

tmp = x2000
for year in range(2001, 2011):
  tmp = calc(r, d, tmp)
  print(tmp)

Solution (Python):
r,d,x = map(int,input().split())
tmp = x
for _ in range(10):
    tmp = r*tmp -d
    print(tmp)

Solution (Python):
r, d, x = map(int, input().split())

for _ in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r, D, x = map(int, input().split())

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

Solution (Python):
r, D, x2000 = map(int, input().split())
x = x2000
for i in range(10):
    x = r * x - D
    print(x)

Solution (Python):
while True:
    try:
        r, D, X = map(int, input().split())
        for i in range(2001, 2011):
            X = r*X - D
            print(X)
    except:
        break

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
  x=r*x-d
  print(x)

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
	x=r*x-d
	print(x)

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
	x=x*r-d
	print(x)

Solution (Python):
r,d,x=map(int,input().split())

for i in range(10):
  x=r*x-d
  print(x)

Solution (Python):
r, d, x1 = map(int,input().split())
x = x1
for i in range(10):
    x = r*x - d
    print(x)

Solution (Python):
r, D, x = map(int, input().split())
cnt = 0
while cnt <= 9:
    cnt += 1
    x = r*x - D
    print(x)

Solution (Python):
r,d,x=map(int,input().split())
e=10
while e>0:
  x=r*x-d
  print(x)
  e-=1

Solution (Python):
r,D,x2000 = map(int, input().split())

pre_x = x2000
for i in range(10):
  ans = (pre_x * r) - D
  print(ans)
  pre_x = ans

Solution (Python):
def main():
    r, D, x = map(int, input().split())

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

main()

Solution (Python):
r, D, x = map(int,input().split())
for i in range(10):
    x = r * x -D
    print(x)

Solution (Python):
def func(x,r,d):
    res = r*x-d
    return (res)

r,d,x=map(int,input().split())
a=[x]

for i in range(10):
    a.append(func(a[i],r,d))
    print(a[i+1])

Solution (Python):
r, D, x2000 = map(int, input().split())
x = x2000
for _ in range(10):
  x = r*x - D
  print(x)

Solution (Python):
r, d, x = map(int, input().split())

for i in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r, d, x = map(int,input().split(" "))
for i in range(10):
    x = r*x-d
    print(x)

Solution (Python):
r, D, x = map(int, input().split())
for i in range(10):
    x = r * x - D
    print(x)

Solution (Python):
r,D,x=map(int,input().split())

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

Solution (Python):
r,d,x_2000=map(int,input().split())
x_i = x_2000
for i in range(10):
  x_ii = r*x_i-d
  x_i = x_ii
  print(x_ii)

Solution (Python):
r, d, x = map(int, input().split())

for i in range(2001, 2011):
	x = r * x - d
	print(x)

Solution (Python):
r,D,x2 = map(int,input().split())
for x in range(10):
  x2=r*x2-D
  print(x2)

Solution (Python):
r,d,x = map(int, input().split())
result=[]
result.append(x)
for i in range(10):
	x=r*x-d
	result.append(x)
for i in result[1:11]:
	print(str(i))

Solution (Python):
r,d,x = map(int, input().split())
for _ in range(10):
  x = r * x - d
  print(x)

Solution (Python):
r,D,x = map(int,input().split())
for i in range(10):
    x = r*x - D
    print(x)

Solution (Python):
r, D, x = map(int, input().split())
for i in range(10):
    ans = r*x - D
    print(ans)
    x = ans

Solution (Python):
r,d,n=map(int,input().split())
for i in range(10):
  n=n*r-d
  print(n)

Solution (Python):
r, D, x_2000 = map(int, input().split())

def x(i):
  if i == 2000:
    return x_2000
  elif i >= 2001:
    return r * x(i - 1) - D
  
for i in range(2001, 2011):
  print(x(i))

Solution (Python):
r,d,x=list(map(int,input().split()))
for i in range(10):
  x=r*x-d
  print(x)

Solution (Python):
r, D, x = map(int, input().split())
for _ in range(10):
  x = r * x - D
  print(x)

Solution (Python):

import sys


def solve(r: int, D: int, x: int):
    for _ in range(10):
        x = r * x - D
        print(x)
    return
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    r = int(next(tokens))  
    D = int(next(tokens))  
    x = int(next(tokens))  
    solve(r, D, x)

if __name__ == '__main__':
    main()

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
  x=r*x-d;print(x)

Solution (Python):
r,D,x=map(int,input().split())
for i in range(10):
  X=r*x-D
  print(X)
  x=X

Solution (Python):
r, d, x = map(int, input().split())

for _ in range(10):
    y = r * x - d
    x = y
    print(y)

Solution (Python):
r, D, x = map(int,input().split())
for i in range(1,11):
    x = r * x - D
    print(x)

Solution (Python):
r,d,x = map(int, input().split())

for _ in range(10):
    x=r*x-d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())

for _ in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r, D, x = map(int, input().split())
for i in range(10):
    x = r*x - D
    print(x)

Solution (Python):
r, d, p = map(int, input().split())
l = [p, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
for i in range(10):
    l[i+1] = r*l[i]-d
    print(l[i+1])

Solution (Python):
r,d,x = map(int,input().split())

for i in range(10):
    ans = 0
    ans += r*x-d
    print(ans)
    x = ans

Solution (Python):
r,D,x=map(int, input().split())
for i in range(10):
  x1 = r*x-D
  print(x1)
  x=x1

Solution (Python):
r, D, x = map(int, input().split())
for ii in range(10):
    x *= r
    x -= D
    print(x)

Solution (Python):
r, D, x = map(int, input().split())

ret = []
for ii in range(10):
    x = r * x - D
    print(x)

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
    x=x*r-d
    print(x)

Solution (Python):
r, D, x=map(int, input().split())

def nextx(r, D, x):
  return r*x-D

for i in range(10):
  x=nextx(r, D, x)
  print(int(x))

Solution (Python):
r, D, x = map(int, input().split())


def f(i, b):
    if i > 10:
        return

    y = r * b - D
    print(y)
    i += 1
    f(i, y)


f(1, x)

Solution (Python):
r, d , x = list(map(int, input().split()))

for i in range(10):
    x = r*x -d
    print(x)

Solution (Python):
r,d,x = map(int,input().split())

for i in range(10):
    print(r*x-d)
    x = r*x-d

Solution (Python):
r,d,x = map(int, input().split())
t = r*x-d
print(t)
for i in range(9):
  t = r*t-d
  print(t)

Solution (Python):
r,d,x = map(int, input().split())
for i in range(10):
  x = r * x - d
  print(x)

Solution (Python):
r,d,x = map(int, input().split())
for i in range(10):
  x = r * x - d
  print(x)

Solution (Python):



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


tmp = x
for i in range(10):
    ans = r * tmp - D
    print(ans)
    tmp = ans

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r, D, x = map(int, input().split())
tmp = x
for i in range(1,11):
    x1 = r * tmp - D
    print(x1)
    tmp = x1

Solution (Python):
r,d,p = map(int, input().split())
for i in range(10):
  ret = r*p-d
  print(ret)
  p = ret

Solution (Python):
r, D, x2000 = map(int, input().split())

x = x2000
for i in range(10):
    ans = r * x - D
    x = ans
    print(ans)

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r,d,x = map(int,input().split())
for _ in range(10):
    x = r*x - d
    print(x)

Solution (Python):
r,d,x=map(int,input().split())

lis=[x]
for i in range(10):
    a=lis[i]*r-d
    lis.append(a)

for i in range(10):
    print(lis[i+1])

Solution (Python):
r, D, x = map(int, input().split())

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

Solution (Python):
r = list(map(int,input().split()))

r0=r[0]
d0=r[1]
x0=r[2]
for i in range(10):
    x0 = r0*x0-d0
    print(x0)

Solution (Python):
r, D, x = map(int, input().split())

res = []
prev = x
for i in range(10):
    n = (r * prev) - D
    res.append(n)
    prev = n

print(*res, sep='\n')

Solution (Python):
r,d,x = map(int,input().split())

for i in range(10):
  x = r*x-d
  print(x)

Solution (Python):
r, D, x2000 = map(int, input().split())
x = [x2000]
for i in range(1,11):
    x.append(r*x[i-1]-D)
    print(x[i])

Solution (Python):
r,D,x = map(int,input().split())
for i in range(10):
  x = r * x -D
  print(x)

Solution (Python):
r,d,x0=map(int,input().split())
x_1=x0
for i in range(10):
    x=x_1*r-d
    print(x)
    x_1=x

Solution (Python):
r,d,x = map(int,input().split())
for i in range(10):
    x=r*x-d
    print(x)

Solution (Python):
r, d, x2000 = map(int, input().split())
xi = x2000
for _ in range(10):
    x = r * xi - d
    xi = x
    print(x)

Solution (Python):
r, d, x = map(int, input().split())

for i in range(10):
    x = r*x -d
    print(x)

Solution (Python):
def f(x, i):
    if i < 10:
        print(r * x - D)
        f(r * x - D, i + 1)
    else:
        exit

r, D, x = list(map(int, input().split()))
f(x, 0)

Solution (Python):
r,d,x2000 = map(int,input().split())

x = [x2000]
for i in range(10):
    x.append(r * x[i] - d)
    print(x[i+1])

Solution (Python):
r, d, x = map(int, input().split())

for _ in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r, D, x = map(int, input().split())

ans = x

for i in range(10):
    ans = r * ans - D
    print(ans)

Solution (Python):
r, d, x2000 = map(int, input().split())
prv_x = x2000
for i in range(2001, 2011):
  x = r*prv_x-d
  print(x)
  prv_x = x

Solution (Python):
r,d,x = map(int,input().split())
for i in range(10):
  x = r*x-d
  print(int(x))

Solution (Python):
r,d,x=map(int,input().split())
for _ in range(10):
	x=r*x-d
	print(x)

Solution (Python):
import sys
input = sys.stdin.readline

def main(): 
    r,D,x_ini = map(int,input().split())
    x=x_ini
    for i in range(10):
        x = r*x-D
        print(x)            
if __name__ == "__main__":
    main()

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
  x=r*x-d
  print(x)

Solution (Python):
r,D,x = map(int, input().split())

y = []

for _ in range(10):
    x = r*x-D
    y.append(x)

print(*y, sep="\n")

Solution (Python):
r,d,x = map(int,input().split())

for i in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r,D,x = map(int,input().split())
i = 0
while i < 10:
    x = r * x - D
    print(x)
    i += 1

Solution (Python):
r, D, x = map(int,input().split())
for i in range(10):
  x = r*x-D
  print(x)

Solution (Python):
r, D, x  = map(int, input().split())

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

Solution (Python):
def main():
    r, D, x = map(int, input().split())
    ans = []
    for i in range(10):
        x = r*x - D
        print(x)
if __name__ == '__main__':
    
    main()

Solution (Python):
r,D,x= [int(i) for i in input().split()]
for i in range(10):
	x = r*x-D
	print(x)

Solution (Python):

r,D,x=list(map(int, input().split()))
for i in range(10):
    x=r*x-D
    print(x)

Solution (Python):

r, d, x = map(int, input().split())

for i in range(10):
    ans = r*x - d
    print(ans)
    x = ans

Solution (Python):
r, d, x = map(int, input().split())
ans = 0

for i in range(10):
  ans = r*x-d
  x = ans
  print(ans)

Solution (Python):

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

x2001 = r * x2000 - D
x2002 = r * x2001 - D
x2003 = r * x2002 - D
x2004 = r * x2003 - D
x2005 = r * x2004 - D
x2006 = r * x2005 - D
x2007 = r * x2006 - D
x2008 = r * x2007 - D
x2009 = r * x2008 - D
x2010 = r * x2009 - D
print(x2001)
print(x2002)
print(x2003)
print(x2004)
print(x2005)
print(x2006)
print(x2007)
print(x2008)
print(x2009)
print(x2010)

Solution (Python):
r, D, x = map(int, input().split())
for i in range(10):
  x = r*x-D
  print(x)

Solution (Python):
r, D, x = map(int, input().split())
for i in range(10):
  if i==0:
    newx = r*x-D
    print(newx)
    a = newx
  else:
    newx = r*a-D
    print(newx)
    a = newx

Solution (Python):
r,D,x = map(int,input().split())
 
tmp = r * x - D
print(tmp)
 
for i in range(1 , 10):
  tmp = tmp * r - D
  print(tmp)

Solution (Python):
r, D, x = map(int, input().split())

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

Solution (Python):
r, D, x = map(int, input().rstrip().split())

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

Solution (Python):
r,D,x = map(int, input().split())
for i in range(10):
    x = r*x - D
    print(x)

Solution (Python):
r, D, x2000 = [int(x) for x in input().split()]
for _ in range(10):
  x2000 = r * x2000 - D
  print(x2000)

Solution (Python):
from functools import lru_cache

r,d,x=map(int,input().split())
@lru_cache(maxsize=100)
def algae(n):
    if n==1:
        return x
    else:
        return r*algae(n-1)-d
for i in range(2,12):
    print(algae(i))

Solution (Python):
r,d,x=map(int,input().split())
def algae(n):
    if n==1:
        return x
    else:
        return r*algae(n-1)-d
for i in range(2,12):
    print(algae(i))

Solution (Python):
r,d,x = map(int,input().split())

X = [0]*11
X[0] = x

for i in range(len(X)-1):
    X[i + 1] = r*X[i] - d
    print(X[i + 1])

Solution (Python):
n=input().split()
r=int(n[0])
D=int(n[1])
x=int(n[2])

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

Solution (Python):
r, D, xinit= map(int, input().split())

x = xinit

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

Solution (Python):
r, d, x = map(int, input().split())

for i in range(10):
    x = r * x - d
    print(x)

Solution (Python):


def main():
    r, D, x2000 = map(int, input().split())
    x = x2000 * r - D
    for _ in range(10):
        print(x)
        x = r * x - D

if __name__ == '__main__':
    main()

Solution (Python):
r,d,x=map(int,input().split())
for i in range(1,11):
    x=r*x-d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())

for i in range(10):
    x = r * x - d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
    x = x * r - d
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
for _ in range(10):
  x = r * x -d
  print(x)

Solution (Python):
r,d,x1 = map(int,input().split())

x=[x1]
for i in range(10):
    print(r * x[i] - d)
    x.append( r * x[i] - d )

Solution (Python):
r,d,x=[int(i) for i in input().split()]
for i in range(10):
    x=r*x-d
    print(x)

Solution (Python):

r,D,x2000 = [int(x) for x in input().split()]
x = x2000
for i in range(10):
    x = r * x - D
    print(x)

Solution (Python):
r, d, x = map(int, input().split())
i = 10
while i > 0:
    x = r * x - d
    print(x)
    i -= 1

Solution (Python):
r,d,x = map(int,input().split())
for i in range(10):
    y = r*x - d
    print(y)
    x = y

Solution (Python):
r,D,x=map(int,input().split())
for i in range(10):
  x=r*x-D
  print(x)

Solution (Python):
r, d, x = map(int, input().split())
for _ in range(10):
    x = r * x - d
    print(x)

Solution (Python):
import sys
input=sys.stdin.readline

r,d,x = map(int, input().split())

for i in range(1,11):
    x = r*x-d
    print(x)

Solution (Python):

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

for _ in range(10):
	xd = r * x - D
	print(xd)
	x = xd

Solution (Python):
r, d, val = map(int, input().split())
for i in range(10):
    val = r * val - d
    print(val)

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
  x = r*x - d
  print(x)

Solution (Python):
r,d,x=map(int,input().split())

for i in range(10):
  w=r*x-d
  print(w)
  x=w

Solution (Python):
import math
import copy

class Score:
    def set_data(self, town, score, idx):
        self.town = set_town
        self.score = set_score
        self.idx = set_idx

inputa = input().split()


a = int(inputa[0])
b = int(inputa[1])
c = int(inputa[2])









prev = c

for i in range(10):
    next = a * prev - b
    print(next)

    prev = next

Solution (Python):
r,d,s=map(int,input().split())

st=s
for i in range(10):
	res=st*r-d
	print(res)
	st=res

Solution (Python):
r,d,x = map(int,input().split())
al = r*x-d
for i in range(10): 
    print(al)
    al = r*al-d

Solution (Python):
r,D,xi = map(int,input().split())
for i in range(10):
    xi = r * xi - D
    print(xi)

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
  x=r*x-d
  print(x)

Solution (Python):
r,D,x=input().split()
r,D,x=int(r),int(D),int(x)

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

Solution (Python):
r, D, x2000 = map(int, input().split())

x = x2000
for i in range(10):
  x = r * x - D
  print(x)

Solution (Python):
r,D,x=map(int,input().split())
prev=x
for _ in range(10):
  prev=r*prev -D
  print(prev)

Solution (Python):
r, D, x2000 = map(int, input().split())
x = x2000
for i in range(10):
  x = r*x - D
  print(x)

Solution (Python):
data=list(map(int,input().split()))

for x in range(10):
    x=data[0]*data[2]-data[1]
    print(x)
    data[2]=x

Solution (Python):
r, d, x = map(int, input().split())
weight = x
for i in range(1, 11):
    weight = (r*weight - d)
    print (weight)

Solution (Python):
r, D, x = list(map(int, input().split()))
for i in range(10):
	x_new = x*r - D
	print(x_new)
	x = x_new

Solution (Python):
r,d,x = map(int,input().split())
cnt = [x]
for i in range(10):
  xx = r*cnt[0]-d
  print(xx)
  cnt.append(xx)
  cnt.pop(0)

Solution (Python):
r,d,x=map(int,input().split())
x_arr=[0]*11
x_arr[0]=x
for i in range(10):
  x_arr[i+1]=r*x_arr[i]-d
  print(x_arr[i+1])

Solution (Python):
r, d, x = map(int, input().split())
ans = []

for i in range(10):
    if i == 0: 
        ans.append(r*x-d)
    else:
        ans.append(r*ans[i-1]-d)

for j in ans:
    print(j)

Solution (Python):
r,d,x = map(int,input().split())
for _ in [0]*10:
  x = r*x-d
  print(x)

Solution (Python):
def solve():
    r, d, x2000 = list(map(int, input().split()))
    x2001_2010 = []
    now = x2000
    for i in range(1, 11):
        now = now * r - d
        x2001_2010.append(now)
    return "\n".join([str(i) for i in x2001_2010])


if __name__ == "__main__":
    print(solve())

Solution (Python):
a = []
a = input().split()

r = int(a[0])
D = int(a[1])
x = int(a[2])

for i in range(10) :
  x = r * x - D
  print(int(x))

Solution (Python):
r,d,x=map(int,input().split())
for i in range(10):
  x = r*x - d
  print(x)

Solution (Python):
r,d,a=map(int,input().split())

for i in range(1,11):
  a=r*a-d
  print(a)

Solution (Python):
r, D, xm = map(int, input().split())


p = xm
for i in range(10):
    n = r * p - D
    print(n)
    p = n

Solution (Python):
r, d ,x = list(map(int, input().split()))
for i in range(10):
    x = r * x - d 
    print(x)

Solution (Python):
inp = input().split()
r, d, x = int(inp[0]), int(inp[1]), int(inp[2])


for _ in range(10):
  x = r * x - d
  print(x)

Solution (Python):
r,D,x=map(int,input().split())
for n in range(10):
  x=r*x-D
  print(x)

Solution (Python):
r, d, x = map(int, input().split())
for i in range(10):
    x = r*x-d
    print(x)

Solution (Python):
r,D,x=map(int,input().split())
c=1
while c<=10:
	x=r*x-D
	print(x)
	c=c+1

Solution (Python):
r, D, x = list(map(int, input().split()))
for i in range(10):
    print(r*x - D)
    x = r*x - D