Title: Debt Hell

Your friend, who lives in an undisclosed country, is involved in debt. He is borrowing 100,000 yen from a loan shark. The loan shark adds 5% interest to the debt and rounds it to the nearest 1,000 yen above week by week.

Write a program that calculates the amount of the debt after n weeks.

Input:
An integer n (0 <= n <= 100) is given in a line.

Output:
Print the amount of the debt in a line.

Sample Input:
5

Output for the Sample Input:
130000

# Buggy version:
# 累積計算

if __name__ == "__main__":
    n = int(input())
    # print(n)

    y = 100000  # 10万　100,000
    y2 = y / 1000
    for i in range(0, n):

        y4 = y2 * 1.05
        # y3 = round(y2 * 1.05 -0.5, 0)
        y3 = float(int(y2 * 1.05))
        print("  {} {}".format(y4, y3))
        if y4 - y3 > 0:
            y4 += 1
        y2 = int(y4)
        print("{} {}".format(i, y2 * 1000))

    print(y2 * 1000)

    # 0 105,000
    # 1 110,250 -> 111,000
    # 2 116,550 -> 117,000
    # 3 122,850 -> 123,000
    #4 129,150 -> 130,000

# Fixed version:
# 累積計算

if __name__ == "__main__":
    n = int(input())
    # print(n)

    y = 100000  # 10万　100,000
    y2 = y / 1000
    for i in range(0, n):

        y4 = y2 * 1.05
        # y3 = round(y2 * 1.05 -0.5, 0)
        y3 = float(int(y2 * 1.05))
        #print("  {} {}".format(y4, y3))
        if y4 - y3 > 0:
            y4 += 1
        y2 = int(y4)
        #print("{} {}".format(i, y2 * 1000))

    print(y2 * 1000)

    # 0 105,000
    # 1 110,250 -> 111,000
    # 2 116,550 -> 117,000
    # 3 122,850 -> 123,000
    #4 129,150 -> 130,000

# Buggy version:
# -*- coding: utf-8 -*-
from math import ceil 
n = int(input())
d = int(1e5)
for x in range(n):
    d = (1.05*d)
    d + int(int(ceil(d/1e3))*1e3)
print (d)

# Fixed version:
# -*- coding: utf-8 -*-
from math import ceil
n=int(input())
d=int(1e5)
for x in range(n):
    d=(1.05*d)
    d=int(int(ceil(d/1e3))*1e3)
print(d)

# Buggy version:
x = input()

n = 100000
while x > 0:
    n *= 1.05
    mod = n % 1000
    if mod != 0:
        n = n + 1000 - mod
    x -= 1

print(int(n))

# Fixed version:
x = int(input())

n = 100000
while x > 0:
    n *= 1.05
    mod = n % 1000
    if mod:
        n += 1000 - mod
    x -= 1

print(int(n))

# Buggy version:
n = 10 ** 2
for i in range(int(input())) :
    n = float(n) * 1.05
    if n - int(n) > 0 : n = int(n) + 1
    else : n = int(n)
print(n * (10 ** 4))

# Fixed version:
n = 10 ** 2
for i in range(int(input())) :
    n = float(n) * 1.05
    if n - int(n) > 0 : n = int(n) + 1
    else : n = int(n)
print(n * (10 ** 3))

# Buggy version:
n = int(input())
debt = 100000

for i in range(n):
	debt = debt * 1.05
	round = debt % 1000
	if round != 0:
		debt = (debt // 1000 + 1) * 1000
print(int(debt)

# Fixed version:
n = int(input())
debt = 100000

for i in range(n):
	debt = debt * 1.05
	round = debt % 1000
	if round != 0:
		debt = (debt // 1000 + 1) * 1000

print(int(debt))

# Buggy version:
import math
shuu = input()
num = int(shuu)
ganpon = 100000
i = 1
while i < num:
    ganpon *= 1.05
    ganpon /= 1000
    ganpon = math.ceil(ganpon)
    ganpon *= 1000
    i += 1
    pass
print(ganpon)

# Fixed version:
import math
shuu = input()
num = int(shuu)
ganpon = 100000
i = 1
while i <= num:
    ganpon *= 1.05
    ganpon /= 1000
    ganpon = math.ceil(ganpon)
    ganpon *= 1000
    i += 1
    pass
#ganpon /= 1000
#ganpon = math.ceil(ganpon)
#ganpon *= 100000
print(ganpon)

# Buggy version:
ef Round(ip, dg):  # ip???dg?????§?????¨?????\????????¢??°
    ip = ip / 10**dg
    if(ip-int(ip) != 0):
        return (int(ip) + 1)*10**dg
    else:
        return int(ip)*10**dg


n=int(input())
sum=100000
for i in range(0, n):
    sum=Round(sum*1.05)
print(sum)

# Fixed version:
def Round(ip, dg):  # ip???dg?????§?????¨?????\????????¢??°
    ip = ip / 10**dg
    if(ip-int(ip) != 0):
        return (int(ip) + 1)*10**dg
    else:
        return int(ip)*10**dg


n=int(input())
sum=100000
for i in range(0, n):
    sum=Round(sum*1.05, 3)
print(sum)

# Buggy version:
week=int(input())
money=100000
for i in range(week):
    money=money*1.05
    if money%1000!=0:
        money=1000*(money//1000+1)

print(money)

# Fixed version:
week=int(input())
money=100000
for i in range(week):
    money=money*1.05
    if money%1000!=0:
        money=1000*(money//1000+1)

print(int(money))

# Buggy version:
import sys
import math

n = int(input())
debt = 100000
for i in range(1,n+1):
	debt = math.floor((debt*1.05)/1000)*1000
print(debt)

# Fixed version:
import sys
import math

n = int(input())
debt = 100000
for i in range(1,n+1):
	debt = math.ceil((debt*1.05)/1000)*1000
print(debt)

# Buggy version:
import math
a = 100000
for n in range(int(input())):
	a = math.ceil(a*105/100)
print(int(a))

# Fixed version:
import math
a = 100000
for n in range(int(input())):
	a = math.ceil(a*105/100000)*1000
print(int(a))

# Buggy version:
# -*-coding:utf-8
#???????¨????

import math

def main():

    debtTime = int(input())

    ans = int(culcDebt(debtTime))

    print(ans)

def culcDebt(t):
    debt = 100000
    for i in range(t):
        print('debt = {0}'.format(debt))
        debt = debt * 1.05
        debt = 1000 * math.ceil(debt/1000)

    return debt


if __name__ == '__main__':
    main()

# Fixed version:
# -*-coding:utf-8
#???????¨????

import math

def main():

    debtTime = int(input())

    ans = int(culcDebt(debtTime))

    print(ans)

def culcDebt(t):
    debt = 100000
    for i in range(t):
        debt = debt * 1.05
        debt = 1000 * math.ceil(debt/1000)

    return debt


if __name__ == '__main__':
    main()

# Buggy version:
x = 100000
for i in range(int(input())):
    x*=1.05
    x+=999
    x=x//1000*1000
print(x)

# Fixed version:
x = 100000
for i in range(int(input())):
    x*=1.05
    x+=999
    x=x//1000*1000
print(int(x))

# Buggy version:
import math

n = int(input())
b = 100
for i in range(n):
  b += b * 0.05
  b = math.ceil(b)
print("%d" % b * 1000)

# Fixed version:
import math

n = int(input())
b = 100
for i in range(n):
  b += b * 0.05
  b = math.ceil(b)
b *= 1000
print("%d" % b)

# Buggy version:
import math
d=100
for _ in[0]*int(input()):
 d=math.ceil(d*1.05)
print(d*1e3)


# Fixed version:
import math
d=100
for _ in[0]*int(input()):d=math.ceil(d*1.05)
print(int(d*1e3))

# Buggy version:
import math
a=100
for _ in[0]*int(input()):a=int(a*1.05)
print(a*1000)


# Fixed version:
import math
a = 100
for _  in [0]*int(input()):
    a = math.ceil(a * 1.05)
print (a*1000)

# Buggy version:
import math

def int_ceil(src,range):
    return int(math.ceil(src/float(range)) * range)

def main():
    week = int(input())
    debt = 100000
    for i in range(week):
        risi = debt * 0.05
        debt = int_ceil(debt+ risi,1000)

    print(math)

if __name__ == "__main__":
    main()


# Fixed version:
import math
def int_ceil(src,range):
    return int(math.ceil(src/float(range)) * range)

def main():
    week = int(input())
    debt = 100000
    for i in range(week):
        risi = debt * 0.05
        debt = int_ceil(debt+ risi,1000)

    print(debt)

if __name__ == "__main__":
    main()

# Buggy version:
import math
week = int(input())
debt = 100000
for i in range(week):
    debt = math.ceil(debt*1.05/1000)*1000
    print(int(debt))
print(int(debt))


# Fixed version:
import math
debt = 100000
rate = 1.05
week = int(input())
for i in range(week):
    debt = math.ceil(debt*1.05/1000)*1000
print(debt)

# Buggy version:
from math import ceil

n = int(input())
x = 100
for i in range(n):
    x = ceil(x * 1.05)
    print(x * 1000)

# Fixed version:
from math import ceil

n = int(input())
x = 100
for i in range(n): x = ceil(x * 1.05)
print(x * 1000)

# Buggy version:
import math

r = 100
n = input()
for i in range(n):
    r = math.ceil(r * 1.05)
print(r * 1000)


# Fixed version:
import math
r=100
n=int(input())
for i in range(n):
    r=math.ceil(r*1.05)
print(r*1000)

# Buggy version:
n = input()
a = 100000
for i in range(1,int(n)+1):
    a = int(a*1.05)
    print(a)
    if(a%1000 > 0):
        a = 1000*int(a/1000) + 1000
    print(a)

print(a)

# Fixed version:
n=int(input())
a=100000
for i in range(n):
    a*=1.05
    if a%1000>0:
        a=a//1000*1000+1000
print(int(a))

# Buggy version:
import math

debt = 100
for i in range(int(input())):
    ceil = math.ceil(debt*1.05)
print(debt*1000)

# Fixed version:
import math
a = 100
for i in range (int(input())):
    a = math.ceil(a*1.05)
print(a*1000)

# Buggy version:
import math
n = int(input())
debt = 100000
for i in range(n):
	debt = int(math.ceil((debt * 1.05 / 1000) * 1000))
print(debt)

# Fixed version:
import math
debt = 100000
for n in range(int(input())):
    debt = math.ceil(debt*1.05/1000)*1000
print(str(debt))

# Buggy version:
import math
debt = 100000
for i in range(n):
  debt = math.ceil(debt*1.05/1000)*1000
print int(debt)

# Fixed version:
import math
n=int(input())
debt=100000
for i in range(n):
    debt=math.ceil(debt*1.05/1000)*1000
print(debt)

# Buggy version:
import math
n = int(input())
print(n)
money = int(100)
for i in range(n):
    money *= 1.05
    money = math.ceil(money)
print(int(money) * 1000)
print()



# Fixed version:
import math

n = int(input())
result = 100
for i in range(n):
  result = math.ceil(result*1.05)
print(result*1000)

# Buggy version:
x=100000
n=int(input())
for i in range(n):
    x*=1.05
    if x%1000!=0:
        x+=1000-x%1000
print(x)


# Fixed version:
n=int(input())

zandaka=100000

for i in range(n):
    zandaka=zandaka*1.05
    if zandaka%1000!=0:
        zandaka=zandaka+1000-zandaka%1000

print(int(zandaka))

# Buggy version:
import math
n = input()
m = 100000
for i in range(n):
    m *= 1.05
    print m
    m = math.ceil(m/1000)*1000
print int(m)

# Fixed version:
import math
n = int(input())

base = 100000
for i in range(n):
  base *= 1.05

  base /= 1000

  base = math.ceil(base)

  base *= 1000

print(base)