Problem:


Debt Hell

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

Write a program which computes the amount of the debt in n weeks. 

Input

An integer n (0 ≤ n ≤ 100) is given in a line.

Output

Print the amout of the debt in a line.

Sample Input

5

Output for the Sample Input

130000



Sample input:
5


Sample output:
130000

Submission status: Accepted

Solution code:
N = int(input())
debt = 100000
for i in range(N):
    debt *= 1.05
    if debt % 1000 > 0:
        debt = debt + 1000 - debt % 1000
print(round(debt))

Submission status: Accepted

Solution code:
N = int(input())
a = 100000
for _ in range(N):
    a *= 1.05
    if a%1000:
        a -= a%1000
        a += 1000
print(int(a))

Submission status: Accepted

Solution code:
N = int(input())

def doround(n) :
    if n % 1000 > 0 :
        return (n // 1000) * 1000 + 1000
    else :
        return n
    
base = 100000
for i in range(N) :
    base *= 1.05
    base = doround(base)
    
print(int(base))

Submission status: Accepted

Solution code:
import math

def run():
    m = 100
    r = 1.05
    n = int(input())
    for _ in range(n):
        m = math.ceil(m * r)

    print(m * 1000)


if __name__ == '__main__':
    run()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
m = 100000
for i in range(n):
    m = m * 1.05
    if m % 1000 > 0:
        m = m - (m%1000) + 1000

print(int(m))

Submission status: Accepted

Solution code:
import math
n = int(input())
debt = 100000
for i in range(n):
    debt += debt/20
    debt = math.ceil(debt/1000)*1000
print(debt)

Submission status: Accepted

Solution code:
debt = 100000
n = int(input())
for _ in range(n):
	debt *= 1.05
	if debt % 1000 > 0:
		debt += 1000 - debt % 1000
print(int(debt))

Submission status: Accepted

Solution code:
num = int(input())
debt = 100000
for x in range(num):
    debt = debt * 105 / 100
    if debt % 1000 != 0:
        debt = ((debt // 1000) + 1) * 1000
    else:
        pass
print(int(debt))

Submission status: Accepted

Solution code:
n = input()
money = 100000
i = 0

while i<n:
	money = money * 105 / 100
	if money % 1000 != 0:
		money = (money / 1000 + 1) * 1000
	i += 1

print money

Submission status: Runtime Error

Solution code:
import math
price = 100000.0
n = int(raw_input())
for i in range(n):
    price = ceil((price * 1.05) / 1000) * 1000

Submission status: Runtime Error

Solution code:
import math
for i in range(int(input(n))):
    n = math.ceil((n*1.05)/1000)*1000

Submission status: Runtime Error

Solution code:
import math
s=int(imput())
m=100000
for i in range(1:s):
    m=m.ceil((m*1.05)/1000)*1000

print(m)

Submission status: Runtime Error

Solution code:
n=input()
loan=10**5
for i in xrange(n):
    loan+=loan*0.05
    if loan%1000!=0:
        loan-=loan%1000
        loan+=10**3
    else:
        loan-=loan%1000
print(int(loan)

Submission status: Runtime Error

Solution code:
debt=10**5
interest=5/100
n=int(input())

for week in range(n):
 debt=debt(1+interest)-
 if debt%1000>0:
  debt=debt+1000-(debt%1000)

print(debt)

Submission status: Runtime Error

Solution code:
debt=10**5
interest=5/100
n=int(input())

for week in range(n):
 debt=debt(1+interest)
 if debt%1000>0:
  debt=debt+1000-(debt%1000)

print(debt)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = raw_input()

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

print(int(n))

Submission status: Runtime Error

Solution code:
from math import ceil
n=int(input())
print((int(ceil(10*(1.05)**n))*10000)

Submission status: Runtime Error

Solution code:
n = int(input())
DEBT = 100000

for interest in range(n):
	DEBT = DEBT * 1.05
	ROUND = DEBT % 1000
	if ROUND != 0:
		DEBT = (DEBT // 1000 + 1) * 1000
print(int(DEBT)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
result = 100000
for i in range(0,n):
    result = result * 1.05
    if result % 1000 == 0:
        pass
    else:
        result = result-(result % 1000)+ 1000
        result = result(int)
print(result)

Submission status: Runtime Error

Solution code:
import math
debt = 100000
for x in range (0, int(input())):
    debt = math.ceil(debt * 1.05, -3)
    
print(int(debt))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
    import math
    def int_ceil(src, range):
        return int(math.ceil(src/float(range)) * range)
    
    def main():
        week = int(input())
        debt = 100000
        for _ in range(week):
            risi = debt * 0.05
            debt = int_ceil(debt + risi, 1000)
        print(debt)
    
    if __name__ == "__main__":
        main()

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
n = input()
a = 100000
while x <= n:
	a * 1.05
	a/1000*1000
	print a

Submission status: Runtime Error

Solution code:
n = input()
a = 100000
while x in xrange(1,n+1):
	a * 1.05
	a/1000*1000
	print a

Submission status: Runtime Error

Solution code:
import math
debt = 100000
n = int(raw_inpu())
for i in range(n):
    debt = math.ceil(debt*1.05,3)
print debt

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
ans = 100000
for i in range(n):
    ans *= 1.05
    if(ans % 1000) != 0: