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



Sample input:
2 10 20


Sample output:
30
50
90
170
330
650
1290
2570
5130
10250

Submission status: Accepted

Solution code:
import sys

def solve(r, d, x):
    for i in range(10):
        x_next = r * x - d
        print x_next
        x = x_next

if __name__ == '__main__':

    r, d, x = map(int, sys.stdin.readline().strip().split(" "))
    solve(r, d, x)

Submission status: Accepted

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

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

Submission status: Accepted

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

def f(x):
    x_list.append(r * x_list[i-1] - D)
    return 

for i in range(1,11):
    f(i)

for i in x_list[1:]:
    print(i)

Submission status: Accepted

Solution code:
A,B,C = map(int,input().split())
N=C
for i in range(1,11):
  N=A*N-B
  print(N)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    r, D, x = [int(n) for n in input().split()]
    for i in range(10):
        tmp = r * x - D
        print(tmp)
        x = tmp
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

input_list = input().split()

r = int(input_list[0])
D = int(input_list[1])
x_2000 = int(input_list[2])
total = x_2000

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

Submission status: Accepted

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

List = []
tmp = x_2000
N = 10

for i in range(N):
    tmp = tmp * r - D
    List.append(tmp)

for i in range(N):
    print("{}".format(List[i]))

Submission status: Accepted

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

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

for j in lst[1:11]:
    print(j)

Submission status: Accepted

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


now = x

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input().split()
r = int(str[0])
D = int(str[1])
X = int(str[2])

XX = []
XX.append(X)
for i in range(1,11):
    XX.append( r*XX[i-1] - D)

for j in range(1, 11):
    print(XX[j])

Submission status: Accepted

Solution code:
def algae_weight(r, d, x):
  return r*x - d

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

for i in range(10):
  x = algae_weight(r, d, x)
  print(x)

Submission status: Accepted

Solution code:
r, D, a = map(int, input().split())

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

Submission status: Accepted

Solution code:
r, D, x = map(int, input().split())
a = r * x - D
print(a)

for i in range(9):
	a = r * a - D
	print(a)

Submission status: Accepted

Solution code:
import os, sys, re, math

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

xcur = x2000
xnex = 0

for _ in range(10):
    xnex = r * xcur - D
    print(xnex)
    xcur = xnex

Submission status: Accepted

Solution code:
rdx = list(map(lambda x: int(x), input().split()))
r = rdx[0]
d = rdx[1]
x = rdx[2]

memo = [0 for i in range(11)]

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

Submission status: Accepted

Solution code:
(r, d, x) = [int(i) for i in input().split(' ')]

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

Submission status: Accepted

Solution code:
#ABC127B/Algae
def main():
    r,d,x = map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
r,D,x_2 = map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r, D, x_2000 = list(map(int, input().split()))
x = []
for i in range(0,10):
    if i == 0:
        x.append(r * x_2000 - D)
        print(x[i])
    else:
        x.append(r * x[i-1] - D)
        print(x[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

r, d, x = map(int, input().split())
ans = [r*x-d]

print(ans[0])
for i in range(0, 9):
    ans.append(ans[i]*r-d)
    print(ans[i+1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r, D, x = map(int, input().split())
ansLst = [0] * 10

ansLst[0] = int((r * x) - D)
for i in range(1, 10):
    ansLst[i] = int((ansLst[i - 1] * r) - D)
for i in ansLst:
    print(i)

Submission status: Accepted

Solution code:
#!/usr/bin/python
# coding: UTF-8

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

r = int(r)
d = int(d)
x = int(x)

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

Submission status: Accepted

Solution code:
r,d,x0 = map(int,input().split())

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

Submission status: Accepted

Solution code:
import sys

def main(inp):
    r,d,xi = map(int,next(inp).split())
    for i in range(10):
        print(r*xi-d)
        xi = r*xi-d
        
main(sys.stdin)

Submission status: Accepted

Solution code:
#https://atcoder.jp/contests/abc127/tasks/abc127_b

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

Submission status: Accepted

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

Submission status: Accepted

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

weight =[0]*11

weight[0] = x

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# coding:utf-8
# abc127_b

"""
2019年5月25日の AtCoder Beginnar Contest
B - Algae
"""


def main():
    r, D, x_2000 = map(int, input().split())
    x = [x_2000]

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

    for v in x[1:]:
        print(v)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
r,D,x0=map(int,input().split())
y=2001
while y<=2010:
  x1=r*x0-D
  print(x1)
  x0=x1
  y+=1

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC127B-Algae.py

from sys import stdin

r, D, x_2000 = list(map(int, stdin.readline().split()))

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# n=int(input())  #数値入力 「N」だけの入力のとき
# a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
# c=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
# s=[list(map(int,list(input()))) for i in range(h)]  # 二次元配列入力　二次元マップみたいな入力のとき

# a=100
# b=0.987654321
# print('{0:06d}-{1:6f}'.format(a,b))  # 0埋めのときの出力
# 000100-0.987654

import numpy as np
import math
import copy

a,b,c=map(int, input().split())

for _ in range(10):
    c = a * c - b
    print(c)

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))

r = a[0]
D = a[1]
x = a[2]

ans = []

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

for i in ans:
    print(i)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input().split()
r = int(s[0])
D = int(s[1])
inx = int(s[2])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r, D, x_2000 = input().split(" ")
r, D, x_2000 = int(r), int(D), int(x_2000)
x = [0 for i in range(12)]
x[0] = x_2000

for k in range(11):
    x[k+1] = r*x[k] - D
    if k != 0:
        print(x[k])

Submission status: Accepted

Solution code:
n = input().split(" ")
r = int(n[0])
d = int(n[1])
x = int(n[2])

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

for i in range(10):
    print(lst[i])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
r, D, X= map(int, input().split())

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

Submission status: Accepted

Solution code:
r, D, x_2000 = map(int, input().split())
cnt = 10
x_next = x_2000

for i in range(cnt):
    x_next = r*x_next - D
    print(x_next)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: UTF-8
# sample code

v = list(map(int, input().split()))
r, d, x2000 = v[0], v[1], v[2]

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

Submission status: Accepted

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

Submission status: Accepted

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

x_old = x_2000
for x in range(10):
  tmp = r*x_old - D
  print(tmp)
  x_old = tmp

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
rDx=list(map(int,input().split()))
x=rDx[2]
for i in range(10):
    x=rDx[0]*x-rDx[1]
    print(x)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
 
 
r,D,x_2000 = sys.stdin.readline().strip().split()
r = int(r)
D = int(D)
x_2000 = int(x_2000)

def calc(x_i):
    X = r*x_i - D
    return(X)
    
x = x_2000
cnt = 0
f=1
while(f==1):
    x = calc(x)
    print(x)
    cnt += 1
    if(cnt==10):
        f=0

Submission status: Accepted

Solution code:
import sys

r, D, x2000 = map(int, sys.stdin.readline().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
R,D,X=map(int, input().split())

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

Submission status: Accepted

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

pre_x = x2000
for _ in range(10):
	crnt_x = r * pre_x - D
	print(crnt_x)
	pre_x = crnt_x

Submission status: Accepted

Solution code:
r, d, x = map(int, input().split())
xx = []
tmp = x
for i in range(10):
  tmp = r*tmp-d
  xx.append(tmp)

for i in range(10):
  print(xx[i])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r,d,xi = list(map(int,input().split()))
for k in range(10):
	xi = r*xi - d
	print(xi)

Submission status: Accepted

Solution code:
from fractions import *
r, D, x2000 = map(int, input().split())
x = [x2000]* 11

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

ans = [x2000]

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

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

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
r, D, x = [int(x) for x in input().split()]
ls =[]
a = x
for i in range (10):
    b = r*a-D
    ls.append(b)
    a = b

for i in ls:
    print(i)

Submission status: Accepted

Solution code:
r, D, X = map(int, input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

for i in xi[1:]:
	print(i)

Submission status: Accepted

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

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

Submission status: Accepted

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

x = x2000
for i in range(2001, 2010+1):
    xnext = r * x - D
    print(xnext)
    x = xnext

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

xi = x2000
for x in range(2001, 2011, 1):
    xi = r * xi - D
    print(xi)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
r, d, x2000 = map(int, input().split())
x = [x2000]
for i in range(1, 11):
    xi = r * x[i - 1] - d
    x.append(xi)
    print(xi)

Submission status: Accepted

Solution code:
def main():
    r, D, x_2000 = [int(ele) for ele in input().split()]
    last_year = x_2000
    kotoshi = 0
    for i in range(2001, 2011):
        kotoshi = r * last_year - D
        print(kotoshi)
        last_year = kotoshi


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r, D, x = input().split()
r, D, x = float(r), float(D), float(x)

C = D/(r-1.0)
y = x-C

for i in range(10):
    y *= r
    print(int(y+C+0.01))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

Solution code:
R, D, X = map(int, input().split())


x = X
for _ in range(10):
    x = R * x - D
    print(x)

Submission status: Accepted

Solution code:
def get_next(r, x, D):
    return r*x - D

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num1, num2, num3 = [int(i) for i in input().split()]

for index1 in range(10):
    num3 = (num1 * num3) - num2
    print(str(num3))

Submission status: Accepted

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


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

Submission status: Accepted

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


main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
import os


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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from sys import stdin
import math
import itertools


def makeIntMatrix(lines):
    intMatrix = []
    for a in makeStringMatrix(lines):
        intMatrix.append([int(b) for b in a])
    return intMatrix
 
 
def makeStringMatrix(lines):
    stringMatrix = [line.split() for line in lines]
    return stringMatrix
 
 
def makeInt(line):
    return int(line.rstrip())
 
 
def makeMultiInteger(line):
    return [int(x) for x in line.rstrip().split()]


def solve(input_string):
    r, d, x = makeMultiInteger(input_string[0])
    x1 = x
    for _ in range(10):
        x1 = r*x1 - d
        print(x1)
    return 


def main():
    input_lines = stdin.readlines()
    answer = solve(input_lines)
    #print(answer)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
r, D, x_2000 = map(int, input().split())
tmp = 0
for i in range(10):
    if tmp == 0:
        print(r * x_2000 - D)
        tmp = r * x_2000 - D
    else:
        print(r * tmp - D)
        tmp = r * tmp - D

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input().split()]
d = (c * a) - b
for _ in range(10):
    print(d)
    d = (a * d) - b

Submission status: Accepted

Solution code:

def main():
    r, D, x = map(int, input().split())
    # r, D, x = 4, 40, 60
    for i in range(10):
        x = r * x - D
        print(x)
    pass


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

def main():
    R, D, X2000 = map(int, input().split())

    xi = X2000
    for _ in [0] * 10:
        n = R * xi - D
        print(n)
        xi = n

input = lambda: stdin.readline()
main()

Submission status: Accepted

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

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

Submission status: Accepted

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

nx = r*x-D
print(nx)

for i in range(9):
	nx = r*nx-D
	print(nx)

Submission status: Accepted

Solution code:
#!/usr/bin/env python

import sys

r,d,x0 = [ int(x) for x in sys.stdin.readline().split() ]

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

Submission status: Accepted

Solution code:
r,d,x=[int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
def solve():
    r, D, x2000 = map(int, input().split())

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


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:

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

x = x2000

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import math
import collections

r,D,x = map(int, sys.stdin.readline().rstrip().split(" "))
for i in range(10):
    x = r*x - D
    print(x)
exit(0)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


s = list(map(int,input().split()))
r=s[0]
D=s[1]
x=s[2]

def x_next(x):
    return r*x-D

for i in range(10):
    x = x_next(x)
    print(x)

Submission status: Accepted

Solution code:
import sys

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

x = 0

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

Submission status: Accepted

Solution code:
r, d, x_2000= map(int,open(0).read().split())

x = [0] * 11
x[0] = x_2000

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

Submission status: Accepted

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

next_a = a
for i in range(0, 10):
    next_a = r * a - d
    print(next_a)
    a = next_a

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = []
num = [int(i) for i in input().split()]

result = num[2]
for temp in range(10):
    result = result * num[0] - num[1]
    print(result)

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
r,D,x=map(int, raw_input().split())

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

Submission status: Accepted

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

arrAns=[x]

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

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

Submission status: Accepted

Solution code:
r, d, start = map(int,input().split())
X = [start]
for i in range(10):
    X.append(r*X[-1]-d)
print(*X[1:],sep="\n")

Submission status: Accepted

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


def next_year(r, d, x):
    return r * x - d


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

Submission status: Accepted

Solution code:
r, d, x = map(int, input().split())
def calc_w(_x):
    return int(r*_x - d)

for i in range(10):
    x = calc_w(x)
    print(x)

Submission status: Accepted

Solution code:
# coding: utf-8
r, d, x = map(int, input().split())
for i in range(10):
    x = r * x - d
    print(x)

Submission status: Accepted

Solution code:
x = [0 for i in range(11)]

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

x_i = x_2000

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