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.
[{"code": "r, D, x = map(int, input().split())\n\nfor i in range(10):\n    x = r * x - D\n    print(x)", "passed": true, "time": 0.38, "memory": 14084.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\n\n\nfor i in range(10):\n  x = r*x-D\n  print(x)", "passed": true, "time": 0.2, "memory": 14180.0, "status": "done"}, {"code": "# unihernandez22\n# https://atcoder.jp/contests/abc127/tasks/abc127_b\n# implementation\n\nr, d, x = map(int, input().split())\n\nfor _ in range(10):\n    x = r*x-d\n    print(x)", "passed": true, "time": 0.15, "memory": 14316.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nfor i in range(10):\n  ans = r*x - d\n  print(ans)\n  x = ans", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "r ,D, x = list(map(int,input().split()))\n\nfor i in range(10):\n    xi = r*x - D\n    print(xi)\n    x = r*x - D\n", "passed": true, "time": 0.24, "memory": 14300.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\n\nfor i in range(10):\n  x = r*x-D\n  print(x)", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\n\nweight = x\n\nfor i in range(10):\n    weight = r*weight-d\n    print(weight)", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "r, D, x = list(map(int, input().split()))\n\nfor i in range(10):\n    x = r*x - D\n    print(x)\n", "passed": true, "time": 0.38, "memory": 14284.0, "status": "done"}, {"code": "r, d, s = list(map(int, input().split()))\n\nfor i in range(10):\n  s = r * s - d\n  print(s)\n", "passed": true, "time": 0.34, "memory": 14312.0, "status": "done"}, {"code": "R, D, x2000 = map(int, input().split())\n\nprev = x2000\nfor i in range(10):\n    x = prev * R - D\n    print(x)\n    prev = x", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "r, d, x =list(map(int, input().split()))\nans = []\nfor i in range(10):\n    x = r*x -d\n    ans.append(x)\n\nfor i in ans:\n    print(i)\n", "passed": true, "time": 0.38, "memory": 14276.0, "status": "done"}, {"code": "r, D, x = map(int,input().split())\n\ndef function(y):\n    y = r * y - D\n\n    return y\n\nz = 1\nwhile z <= 10:\n    z += 1\n    ans = function(x)\n    x = function(x)\n    print(ans)", "passed": true, "time": 0.14, "memory": 14356.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\n\nfor i in range(10):\n    x = r * x - D\n    print(x)", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "r, d, x = list(map(int, input().split()))\n\nfor i in range(10):\n    x = r*x - d\n    print(x)", "passed": true, "time": 0.27, "memory": 14068.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nfor i in range(10):\n    x = r*x-d\n    print(x)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "r, D, x = list(map(int, input().split()))\n\nfor i in range(10):\n    x = r*x - D\n    print(x)\n", "passed": true, "time": 0.2, "memory": 14312.0, "status": "done"}, {"code": "r, D, x2000 = map(int, input().split())\n\nx = r * x2000 - D\n\nfor i in range(1, 10 + 1):\n    print(x)\n    x = r * x - D", "passed": true, "time": 0.87, "memory": 14332.0, "status": "done"}, {"code": "r,d,x=map(int, input().split())\nfor i in range(10):\n  x=r*x-d\n  print(x)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\n\nfor _ in range(10):\n    x = x*r - d\n    print(x)", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "r, D, x2000 = map(int, input().split())\nn = x2000\nfor i in range(10):\n    x = r * n -D\n    print(x)\n    n = x", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "r,D,x = map(int,input().split())\n\nfor i in range(1,11):\n    x = x * r - D\n    print(x)", "passed": true, "time": 0.23, "memory": 14084.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\n\nweights = []\nfor i in range(10):\n    if i == 0:\n        weights.append(r * x - d)\n        print(weights[i])\n    else:\n        weights.append(r * weights[i - 1] - d)\n        print(weights[i])", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nfor i in range(10):\n    x = r*x-d\n    print(x)", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "r,d,x = map(int, input().split())\n\nfor _ in range(10):\n  x *= r\n  x -= d\n  print(x)", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "r,D,x2000=map(int, input().split())\n\nans=[x2000]\n\nfor i in range(10):\n\tans.append(r*ans[i]-D)\n\nfor h in range(1,11):print(ans[h])", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "r,D,x=map(int,input().split())\n\nfor i in range(10):\n\tx=r*x-D\n\tprint(x)", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "r,D,x = map(int, input().split())\nfor i in range(1,11):\n    x = r*x - D\n    print(x)", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "R, D, x = map(int, input().split())\nfor _ in range(10):\n  x = R*x - D\n  print(x)", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nfor i in range(10):\n  x = r*x-d\n  print(x)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "r, d, x = list(map(int, input().strip().split()))\n\nfor i in range(10):\n    x = r * x - d\n    print(x)\n\n", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "r,D,x=map(int,input().split())\nfor i in range(10):\n    x=r*x-D\n    print(x)", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "r,d,x=map(int,input().split())\nfor i in range(10):\n    x=r*x-d\n    print(x)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "r,D,x=list(map(int,input().split()))\n\nfor i in range(10):\n    x=r*x-D\n    print(x)\n", "passed": true, "time": 0.15, "memory": 14268.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nfor i in range(10):\n    x = r* x - d\n    print(x)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\n\nweights = []\nfor i in range(10):\n    try:\n        weights.append(r * weights[i - 1] - d)\n        print(weights[i])\n    except:\n        weights.append(r * x - d)\n        print(weights[i])", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nfor i in range(10):\n    x = r*x - d\n    print(x)", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "r,d,x= map(int,input().split())\n\nfor _ in range(10):\n    print(r*x-d)\n    x = r*x-d", "passed": true, "time": 0.15, "memory": 14172.0, "status": "done"}, {"code": "r,D,x = list(map(int,input().split()))\n\nfor i in range(10):\n    x = r*x - D\n    print(x)\n", "passed": true, "time": 0.23, "memory": 14296.0, "status": "done"}, {"code": "# B Algea\nr, D, x = list(map(int, input().split()))\nfor i in range(10):\n    x = r * x - D\n    print(x)\n", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "x=[]\nr,D,a=map(int,input().split())\nx.append(a)\nfor i in range(10):\n   x.append(r*x[i]-D)\n   print(x[i+1])", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\nfor i in range(10):\n\tx = r * x - D\n\tprint(x)", "passed": true, "time": 0.15, "memory": 14084.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nfor i in range(10):\n    x = r * x - d\n    print(x)", "passed": true, "time": 0.14, "memory": 14212.0, "status": "done"}, {"code": "r,D,x=list(map(int,input().split()))\nfor _ in range(10):\n    x=r*x-D\n    print(x)\n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "\ndetails = list(map(int,input().split()))\n\nr = details[0]\nD = details[1]\nxtemp = details[2]\n\nfor i in range(0,10):\n    x_next = xtemp * r - D\n    print(x_next)\n    xtemp = x_next\n\n", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\nfor i in range(10):\n  x = r*x - D\n  print(x)", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "def mapt(fn, *args):\n    return tuple(map(fn, *args))\n\n\ndef Input():\n    return mapt(int, input().split(\" \"))\n\n\ndef main():\n    r, d, x = Input()\n    for _ in range(10):\n        x = x * r - d\n        print(x)\n\nmain()", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "r, D, a_2000 = input().split()\nr = int(r)\nD = int(D)\na_2000 = int(a_2000)\nb = D / (r-1)\n \nfor i in range (1, 11) :\n  print(int((r**i)*(a_2000 - b) + b))", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "a,b,c = map(int,input().split())\n#print(a*c-b)\nfor i in range(10):\n    c = a*c-b\n    print(c)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "r,D,x=map(int,input().split())\nnow=x\nfor i in range(10):\n  x=x*r-D\n  print(x)", "passed": true, "time": 0.23, "memory": 14172.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\n\nans = x\nfor _ in range(10):\n    ans = r * ans - D\n    print(ans)", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nA = x\n\nfor _ in range(10):\n    A = r*A-d\n    print(A)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "from typing import List\n\n\ndef answer(r: int, d: int, x: int) -> List[int]:\n    result = []\n    for _ in range(10):\n        x = r * x - d\n        result.append(x)\n\n    return result\n\n\ndef main():\n    r, x, d = list(map(int, input().split()))\n    for i in answer(r, x, d):\n        print(i)\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.16, "memory": 15240.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\nfor i in range(10):\n    x = r*x-d\n    print(x)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "r, d, x = map(int,input().split())\nfor i in range(10):\n  x = r*x - d\n  print(x)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "r, d, ans = list(map(int, input().split()))\nfor i in range(10):\n    ans = r * ans - d\n    print(ans)\n", "passed": true, "time": 0.16, "memory": 14068.0, "status": "done"}, {"code": "r,d,x2000 = map(int,input().split())\n\na = x2000\n\nfor x in range(10):\n  a = r * a - d\n  print(a)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "r, d, x = list(map(int, input().split()))\n\nfor i in range(1, 11):\n    x = r * x - d\n    print(x)\n", "passed": true, "time": 0.23, "memory": 14180.0, "status": "done"}, {"code": "r,d,x=map(int,input().split())\n\nfor i in range(1,11):\n  x=r*x-d\n  print(x)", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\nfor i in range(10):\n    x = r * x -D\n    print(x)", "passed": true, "time": 0.23, "memory": 14088.0, "status": "done"}, {"code": "r,D,x = list(map(int,input().split()))\nfor i in range(10):\n    x = r*x-D\n    print(x)\n", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "r, d, x = list(map(int, input().split()))\n\nfor i in range(10):\n  x = r * x - d\n  print(x)\n", "passed": true, "time": 0.16, "memory": 14236.0, "status": "done"}, {"code": "r,D,X2000 = list(map(int,input().split()))\nfor i in range(10):\n  X2000=r*X2000-D\n  print(X2000)\n", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "r, D, x2000 = map(int, input().split())\n\nfor i in range(10):\n  x = r * x2000 - D\n  print(x)\n  x2000 = x", "passed": true, "time": 0.14, "memory": 14044.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\noutput = r*x - d\nfor i in range(10):\n    print(output)\n    output = output * r - d", "passed": true, "time": 0.14, "memory": 14136.0, "status": "done"}, {"code": "[r,D,x]=[int(_) for _ in input().split()]\nfor i in [0]*10:\n  print(x:=r*x-D)", "passed": true, "time": 0.15, "memory": 14196.0, "status": "done"}, {"code": "r,d,x=map(int,input().split())\nfor alg in range(10):\n    x*=r\n    x-=d\n    print(x)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "r, D, x = list(map(int, input().split()))\n\nfor i in range(10):\n    next_x = (r * x) - D\n    print(next_x)\n    x = next_x\n", "passed": true, "time": 0.15, "memory": 14096.0, "status": "done"}, {"code": "r, d, x = list(map(int, input().split()))\nprint((r*x-d))\nfor _ in range(9):\n    x = r*x-d\n    print((r*x-d))\n    \n", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "r, D, x = list(map(int, input().split()))\n\nfor i in range(10):\n    x= r*x - D\n    print(x)\n", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "r, D, x_2000 = map(int, input().split())\n\nx = [x_2000] * 11\n\nfor i in range(10):\n  x[i+1] = r * x[i] - D\n  \nprint(*x[1:], sep='\\n')", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "a,b,c=input().split()\na=int(a)\nb=int(b)\nc=int(c)\ni=0\nwhile i<10:\n  i=i+1\n  c=a*c-b\n  print(c)", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\nfor i in range(10):\n  x = r * x - d\n  print(x)", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "r,D,x = map (int, input ().split ())\nfor i in range (10):\n  x = r*x-D\n  print (x)", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\nfor i in range(10):\n    ans = r * x - d\n    print(ans)\n    x = ans", "passed": true, "time": 0.14, "memory": 14048.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\nfor i in range(10):\n    x = r*x - d\n    print(x)", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "r,D,x=map(int,input().split())\n\nc=0\nwhile c<10:\n    x=r*x-D\n    print(x)\n    c+=1", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "r,D,x = map(int,input().split())\n\nX = []\nX.append(x)\n\nfor i in range(10):\n  x = r*X[i] - D\n  X.append(x)\n  print(x)", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "r,d,x=[int(num) for num in input().split(\" \")]\nfor i in range(10):\n    x=r*x-d\n    print(x)\n", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "r,d,x = map(int, input().split())\nfor i in range(10):\n  y = r*x - d\n  print(y)\n  x = y", "passed": true, "time": 0.23, "memory": 14240.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\nfor i in range(10):\n    x = r*x - D\n    print(x)", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "a, b, x = map(int, input().split())\nfor i in range(10):\n  x = a*x-b\n  print(x)", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "r,d,x=map(int,input().split())\ntmp=x\nfor i in range(10):\n    print(r*tmp-d)\n    tmp=r*tmp-d", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "lst = input()\nlst = lst.split()\n\n\nfor i in range(len(lst)):\n    lst[i]= int(lst[i])\nr = lst[0]\nD = lst[1]\nx = lst[2]\n\nfor i in range(10):\n    x = r*x-D\n    print(x)", "passed": true, "time": 0.16, "memory": 14196.0, "status": "done"}, {"code": "#ABC127 B\n\nr,D,x = map(int,input().split())\nA = []\nfor i in range(11):\n    if i == 0:\n        A.append(x)\n    else:\n        A.append(r*(A[i-1])-D)\n\nfor j in range(10):\n    print(A[j+1])", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "d=input().split()\nr=int(d[0])\nD=int(d[1])\nx=int(d[2])\nfor i in range(10):\n    x=x*r-D\n    print(x)", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "r, d, x = list(map(int, input().split()))\nfor i in range(10):\n    x = r * x - d\n    print(x)\n", "passed": true, "time": 0.15, "memory": 14236.0, "status": "done"}, {"code": "r,d,x = map(int,input().split())\nfor i in range(10):\n    x = r*x-d\n    print(x)", "passed": true, "time": 0.23, "memory": 14056.0, "status": "done"}, {"code": "r,d,x=list(map(int, input().split()))\n\nfor i in range(10):\n    x=r*x-d\n    print(x)\n", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "r,d,x=map(int,input().split())\nans =  x\nfor i in range(10):\n  ans = r*ans-d\n  print(ans)", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "r, d, x = (int(i) for i in input().split())\nans = x\nfor i in range(0, 10):\n    ans = r * ans - d\n    print(ans)", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "r, D, x = list(map(int, input().split()))\n\nfor i in range(10):\n  x = r*x - D\n  print(x)\n\n", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "r,D,x0=map(int,input().split())\n\nans=x0\n\nfor i in range(10):\n  ans=r*ans-D\n  print(ans)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "r,d,x=map(int,input().split())\nans=x\nfor _ in range(10):\n    ans=r*ans-d\n    print(ans)", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "r,d,x = list(map(int,input().split()))\nsu = 0\nfor i in range(10):\n    su = r*x - d\n    print(su)\n    x = su\n    su = 0\n", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "r, d, x = map(int, input().split())\nfor _ in range(10):\n    x = r * x - d\n    print(x)", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\ndef f(r, D, x):\n  return r * x - D\n\nfor i in range(10):\n  x = f(r, D, x)\n  print(x)", "passed": true, "time": 0.15, "memory": 14328.0, "status": "done"}, {"code": "r, D, x = map(int, input().split())\n\nfor i in range(10):\n  if i == 0:\n    weight = r*x - D\n    print(weight)\n  else:\n    weight = r*weight - D\n    print(weight)", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "r,D,x=map(int, input().split())\nfor i in range(10):\n    x=r*x-D\n    print(x)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "details = list(map(int, input().split()))\nr = details[0]\nD = details[1]\nx = details[2]\ncurrent = x\nfor i in range(10):\n    thing = r * current - D\n    print(thing)\n    current = thing", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}]