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-----
2 10 20

-----Sample Output-----
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.

Difficulty: introductory

Starter code:

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

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

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


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

# unihernandez22
# https://atcoder.jp/contests/abc127/tasks/abc127_b
# implementation

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

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

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

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

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


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

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

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

weight = x

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

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

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


r, d, s = list(map(int, input().split()))

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


R, D, x2000 = map(int, input().split())

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

r, d, x =list(map(int, input().split()))
ans = []
for i in range(10):
    x = r*x -d
    ans.append(x)

for i in ans:
    print(i)


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

def function(y):
    y = r * y - D

    return y

z = 1
while z <= 10:
    z += 1
    ans = function(x)
    x = function(x)
    print(ans)

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

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

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

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

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

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

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


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

x = r * x2000 - D

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

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

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

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

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

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

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

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

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

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

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

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

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

ans=[x2000]

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

for h in range(1,11):print(ans[h])

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

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

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

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

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

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

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



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

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

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

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


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

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

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

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

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

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

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

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


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


x=[]
r,D,a=map(int,input().split())
x.append(a)
for i in range(10):
   x.append(r*x[i]-D)
   print(x[i+1])

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

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

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



details = list(map(int,input().split()))

r = details[0]
D = details[1]
xtemp = details[2]

for i in range(0,10):
    x_next = xtemp * r - D
    print(x_next)
    xtemp = x_next



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

def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


def main():
    r, d, x = Input()
    for _ in range(10):
        x = x * r - d
        print(x)

main()

r, D, a_2000 = input().split()
r = int(r)
D = int(D)
a_2000 = int(a_2000)
b = D / (r-1)
 
for i in range (1, 11) :
  print(int((r**i)*(a_2000 - b) + b))

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

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

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

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

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

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

from typing import List


def answer(r: int, d: int, x: int) -> List[int]:
    result = []
    for _ in range(10):
        x = r * x - d
        result.append(x)

    return result


def main():
    r, x, d = list(map(int, input().split()))
    for i in answer(r, x, d):
        print(i)


def __starting_point():
    main()

__starting_point()

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

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

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


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

a = x2000

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

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

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


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

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

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

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


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

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


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


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

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

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

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

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

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

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


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


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

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


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

x = [x_2000] * 11

for i in range(10):
  x[i+1] = r * x[i] - D
  
print(*x[1:], sep='\n')

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
i=0
while i<10:
  i=i+1
  c=a*c-b
  print(c)

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

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

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

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

r,d,x=map(int,input().split())
l=[]
for i in range(10):
    x = r*x-d
    print(x,"\n")

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

c=0
while c<10:
    x=r*x-D
    print(x)
    c+=1

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

X = []
X.append(x)

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

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


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

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

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

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

lst = input()
lst = lst.split()


for i in range(len(lst)):
    lst[i]= int(lst[i])
r = lst[0]
D = lst[1]
x = lst[2]

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

#ABC127 B

r,D,x = map(int,input().split())
A = []
for i in range(11):
    if i == 0:
        A.append(x)
    else:
        A.append(r*(A[i-1])-D)

for j in range(10):
    print(A[j+1])

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

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


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

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

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


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

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

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

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



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

ans=x0

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

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

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


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

r, D, x = map(int, input().split())
def f(r, D, x):
  return r * x - D

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

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

for i in range(10):
  if i == 0:
    weight = r*x - D
    print(weight)
  else:
    weight = r*weight - D
    print(weight)

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

details = list(map(int, input().split()))
r = details[0]
D = details[1]
x = details[2]
current = x
for i in range(10):
    thing = r * current - D
    print(thing)
    current = thing