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:
import math
n=int(input())
r=100000
for i in range(n):
	r=math.ceil(r*1.05/1000)*1000
print(r)

Submission status: Accepted

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 = int(result)
print(result)

Submission status: Accepted

Solution code:
from math import ceil

n = int(input())
debt = 100
for i in range(n):
    debt = ceil(debt * 1.05)

print(debt * 1000)

Submission status: Accepted

Solution code:
def ceil(src, range):
    k = src / 1000
    if k == int(k):
        return int(src)
    else:
        return ((int)(src / range) + 1 ) * range

debt = 100000
for x in range (0, int(input())):
    debt = ceil(debt * 1.05, 1000)
    
print(int(debt))

Submission status: Accepted

Solution code:
money = 100000
unit = 1000
user = input()
n = int(user)
for i in range(n):
    money *= 1.05
    if money % unit != 0:
        money -= money % unit
        money += unit
print(str(int(money)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    debt = 100000
    n = int(input())
    for i in range(n):
        debt = debt * 1.05
        if debt % 1000 > 0:
            debt = (debt // 1000 * 1000) + 1000
    print(int(debt))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
n = int(input())
money = 10**5
for i in range(n):
    money *= 1.05
    money_c = math.ceil(money * 0.001)
    money = money_c * 1000
print(money)

Submission status: Accepted

Solution code:
import math

x,y = int(input()),100
for i in range(x):
    y = math.ceil(y*1.05)

print(y*1000)

Submission status: Accepted

Solution code:
import math
import itertools
x = 100
for _ in itertools.repeat(None,int(input())):
    x = math.ceil(x*1.05)
print(x*1000)

Submission status: Accepted

Solution code:
import math

v = int(input())

cal = 100000
for w in range(v):
    cal = math.ceil(cal * 1.05 * 0.001) * 1000

print("%d" % cal)

Submission status: Accepted

Solution code:
import math

ans = 100000

n = int(raw_input())

for i in range(n):
    ans = math.ceil(ans * 1.05 / 1000) * 1000

print int(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())
b=100000
for i in range(a):
    ans=b*1.05
    if ans%1000!=0 :
        ans=ans+(1000-ans%1000)
        b=ans
    else:
        b=ans
print(int(b))

Submission status: Accepted

Solution code:
# Aizu Problem 0007: Debt Hell
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


N = int(input())
debt = 100000
for week in range(N):
    interest = debt * .05
    iinterest = int(interest / 1000) * 1000
    if interest > iinterest:
        iinterest += 1000
    debt += iinterest

print(debt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
v = 100000
for _ in [0]*int(input()):
    v *= 1.05
    v += 1000 * (v%1000 > 0)
    v -= v%1000
print(int(v))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
n = input()

a = 100000
for i in range(n):
    a = 1.05 * a
    a /= 1000
    a = int(math.ceil(a) * 1000)
print (a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python

num = int(raw_input())
money = 100000

for i in range(num):
    money = int(money * 1.05)
    if money % 1000 == 0:
        continue
    else:
        money = int(money) / 1000 * 1000 + 1000
print money

Submission status: Accepted

Solution code:
import math

n = int(input())
d = 100000

for i in range(n):
	d *= 1.05
	d = math.ceil((d/1000))*1000
print(d)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

if __name__ == '__main__':
    n = (int)(input())
    a = 100000
    for x in range(0,n):
        b = a*1.05
        c = math.ceil(b/1000)
        a = c*1000
    print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = 100000
for i in range(int(input())):
    x*=1.05
    x+=999
    x=x//1000*1000
print(int(x))

Submission status: Accepted

Solution code:
# coding=utf-8

n = int(input())
debt = 100000

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

print(int(debt))

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
# coding: utf-8

import math

n = int(raw_input())

ans = 100000
for i in range(n):
	ans = ans * 1.05
	q = math.ceil(ans / 1000)
	ans = q * 1000
print int(ans)

Submission status: Accepted

Solution code:
from math import floor
n = int(input())

def debt(week):
    debt = 100000
    for i in range(1,n+1):
        debt *= 1.05
        amari = debt % 1000
        if amari:
            debt += 1000 - amari
    return int(debt)

print(debt(n))

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

def main():
    n = int(input())
    _debt = 100000
    for i in range(n):
        _debt += math.ceil(_debt*0.05*0.001)*1000
    print(_debt)



if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
rishi=0.05
debt= 100000
week = int(raw_input())
kiriage = 1000

def ceil(src, range):
    return((int)(src / range) + 1) * range

for i in range(0,week):
    if  debt * 1.05 % kiriage !=0:
        debt = ceil(debt * (1+rishi), kiriage)
        #print debt
    else:
        debt = debt * (1+rishi)
        #print debt

print debt

Submission status: Accepted

Solution code:
rishi=0.05
debt= 100000
week = int(raw_input())
kiriage = 1000

def ceil(src, range):
    if int(src * (1 + rishi) % range) == 0:
        return src * (1+rishi)
    else:
        return((int)(src*(1+rishi) / range) + 1) * range

for i in range(0,week):
    debt = ceil(debt, kiriage)
print debt

Submission status: Accepted

Solution code:
import math
res = 100
for i in range(int(input())):
    res = math.ceil(res*1.05)
print(res*1000)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

for i in range(n):
    d *= 1.05
    if d % 1000:
        d = d - d%1000 + 1000
print(int(d))

Submission status: Accepted

Solution code:
import math

n = int(input())
m = 100000.0
for i in range(n):
    m = math.ceil((m * 1.05)/1000)*1000

print(int(m))

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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 i in range(week):
        risi = debt * 0.05
        debt = int_ceil(debt+ risi,1000)

    print(debt)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# coding:utf-8
import math
debt = 100000

for _ in range(int(input())):
    debt *= 1.05
    debt = math.ceil(debt / 1000) * 1000

print(debt)

Submission status: Accepted

Solution code:
import math
money = int(100)
for i in range(int(input())):
    money *= 1.05
    money = math.ceil(money)
print(int(money) * 1000)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
num=100
for i in range(int(input())):
	num = math.ceil(num*1.05)
print(num*1000)

Submission status: Accepted

Solution code:
debt = 100000.0

a = int(input())
for i in range(a):
    debt = debt * 1.05
    if(debt % 1000):
        debt = (debt // 1000) * 1000 + 1000
print(int(debt))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=100000
for i in range(int(input())):
    x*=1.05
    if x%1000!=0:
        x+=1000-x%1000
print(int(x))

Submission status: Accepted

Solution code:
n = int(input())
a = 100000
for i in range(n):
  a = a * 1.05
  b = 0
  if a % 1000:
    b = 1000
  a = int(a // 1000 * 1000 + b)
print(a)

Submission status: Accepted

Solution code:
import math
a = 100
for _ in range(int(input())):a=math.ceil(a*1.05)
print(a * 1000)

Submission status: Accepted

Solution code:
import math
n = int(input())
debt = 100000

for i in range(n):
    debt = math.ceil(debt*1.05/1000)*1000
print(debt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

m = 100000
rate = 0.05
n = int(input())
for i in range(n):
    m += m*rate
    x = m%1000
    m -= x
    while(x % 1000 != 0):
        x += 1
    m += x
print(str(int(m)))

Submission status: Accepted

Solution code:
a=100
for _ in[0]*int(input()):a=int(a*1.05)+(a%20>0)
print(a*1000)

Submission status: Accepted

Solution code:
import math
n=input()
S=100000

for i in range(n):
	S*=1.05
	S=int( math.ceil(S/1000)*1000 )
print S

Submission status: Accepted

Solution code:
import math
j = 100
for _ in range(int(input())):
    j = math.ceil(j * 1.05)
print(j * 1000)

Submission status: Accepted

Solution code:
import math
N = int(input())
A = 100000
for _ in range(N):
    A = A * 1.05
    A = (int(math.ceil(A / 1000))) * 1000
print(A)

Submission status: Accepted

Solution code:
n = int(input())
ans = 100000
# ans += (n*(100000*0.05))
for i in range(n):
    ans *= 1.05
    if ans % 1000 > 0:
        ans = ans // 1000 * 1000 + 1000
print(int(ans))

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
from math import ceil

DEBT = 100000
DIGITS = 1000
INTEREST_RATE = 1.05

def calc_debt(n):
    d = DEBT // DIGITS
    while n > 0:
        d = ceil(d * INTEREST_RATE)  # 借金の小数点以下を切り捨て
        n  -= 1
    return d * DIGITS

n = int(input())
print(calc_debt(n))

Submission status: Accepted

Solution code:
def ceil(n):
    if n%1000:
        return (1+n//1000)*1000
    else:
        return n
    
def debt(n):
    if n==0: return 100000
    return int(ceil(debt(n-1)*1.05))

print(debt(int(input())))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# AOJ 0007 Debt Hell
# Python3 2018.6.7 bal4u

a = 100000;
n = int(input())
while n > 0:
	n -= 1
	a = a + (a * 5) // 100
	a = ((a - 1) // 1000 + 1) * 1000   # 1000未満の切り上げ
print(a)

Submission status: Accepted

Solution code:
import math

class Debt(object):
    def __init__(self):
        self.debt = 100000
        
    def spend_a_week(self):
        self.debt = self._ceil_1000(self.debt * 1.05)

    def _ceil_1000(self, debt):
        return int(math.ceil(debt / 1000) * 1000)

def run():
    n = int(input())
    debt = Debt()
    for _ in range(n):
        debt.spend_a_week()
    print(debt.debt)

if __name__ == '__main__':
    run()

Submission status: Accepted

Solution code:
print(lambda f,n:f(f,n))(lambda f,n:n==0 and 100000 or(lambda x:x%1000>0 and x-x%1000+1000 or x)(f(f,n-1)*105/100),int(raw_input()))

Submission status: Accepted

Solution code:
N=1000;print(lambda f,n:f(f,n))(lambda f,n:n==0 and 100*N or(lambda x:x%N>0 and x-x%N+N or x)(f(f,n-1)*105/100),input())

Submission status: Accepted

Solution code:
price = 100000
n = input()
for i in range(n):
	price = price * 105 / 100
	if price % 1000 != 0:
		price -= (price % 1000)
		price += 1000
print price

Submission status: Accepted

Solution code:
import math
n = input()
p = 0
money = 100
while p != n:
    money = math.ceil(money * 1.05)
    p += 1
print int(money * 1000)

Submission status: Accepted

Solution code:
import sys, math

for line in sys.stdin.readlines():
    line = line.strip()
    n = int(line)
    value = 100000.0
    for week in xrange(n):
        value = value * 1.05
        value = math.ceil(value / 1000) * 1000
    print int(value)

Submission status: Accepted

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

week = int(raw_input())
debt = 100000
for i in range(week):
    debt = debt*1.05
    if debt%1000 != 0:
        debt -= debt%1000
        debt += 1000
print(int(debt))

Submission status: Accepted

Solution code:
import math
n=input()
m=10**2
for i in range(n):
    m=m*1.05
    m=math.ceil(m)
print int(m*(10**3))

Submission status: Accepted

Solution code:
m = 100000
for i in range(int(raw_input())):
    m*=1.05
    m=(int((m+999)/1000))*1000

print m

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
m=10**2
for i in range(input()):
    m*=1.05
    m=math.ceil(m)
print int(m*(10**3))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
debt = 100000
for i in range(int(raw_input())):
    debt *= 1.05
    if debt % 1000: debt = int(debt) / 1000 * 1000 + 1000
print debt

Submission status: Accepted

Solution code:
from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
debt = 100000.0
for i in xrange(int(raw_input())):
    debt += debt * 0.05
    debt = debt - (debt % 1000.0) + (1000.0 if debt % 1000.0 else 0.0)
print(int(debt))

Submission status: Accepted

Solution code:
'''
Created on Mar 11, 2013

@author: wukc
'''
import math
n=int(raw_input())

p=100000
for i in range(n): p=int(math.ceil(p*1.05/1000)*1000)
print p

Submission status: Accepted

Solution code:
import math
n = input()
a = 100000
for val in range(1,n+1):
	a *= 1.05
	A = math.ceil(a/1000) * 1000
	a = A 
print int(a)

Submission status: Accepted

Solution code:
n = input();

ans = 100000;
for i in range(n):
  ans = int(float(ans) * 1.05);
  ans += 999;
  ans /= 1000;
  ans *= 1000;

print ans

Submission status: Accepted

Solution code:
def f(a,b):
    if (b == 0): return a
    a = a * 1.05
    if (a%1000 != 0): a = a - a%1000 + 1000
    return f(a,b-1)
print int(f(100000,input()))

Submission status: Accepted

Solution code:
import math
base = 100000
r = 0.05
n = int(raw_input())
if n <= 100:
    for i in range(1, n+1):
        base = base + (base * r)
        now = int(math.ceil(base / 1000))
        base = now * 1000
    print "{}".format(base)

Submission status: Accepted

Solution code:
a=raw_input()
debt = 100000
for i in range(int(a)):
    debt += debt/20
    b=debt%1000
    if b > 0:
	debt += 1000-b
print debt

Submission status: Accepted

Solution code:

import math
import sys


def debt(debt_s, week):
    if week == 0:
        return debt_s
    debt_s = int(math.ceil((debt_s * 1.05)/1000) * 1000)
    return debt(debt_s, week - 1)


n = int(sys.stdin.readline())

debt_s = 100000
print debt(debt_s, n)

Submission status: Accepted

Solution code:
print 13530000

Submission status: Accepted

Solution code:
n = int(raw_input())

m = 100000

for x in range(n) :
  m = int(m*1.05)
  
  if m % 1000 :
    m = (m/1000)*1000+1000
print m

Submission status: Accepted

Solution code:
from math import ceil
a = 100
for i in range(input()):
    a *= 1.05
    a = ceil(a)
print int(a*1000)

Submission status: Accepted

Solution code:
import math

n = input()
money = 100000

for i in range(0, n):
    money = money*1.05
    money /= 1000
    money = int(math.ceil(money)*1000)

print money

Submission status: Accepted

Solution code:
n = input()
money = 100000
for i in range(n):
    money = int(money * 1.05)
    if money != money / 1000 * 1000:
        money = money / 1000 * 1000 + 1000
print money

Submission status: Accepted

Solution code:
a=10**5;b=1000
for i in range(input()):
    a*=1.05
    if a%b>0: a=a-a%b+b
print int(a)

Submission status: Accepted

Solution code:
import math

n=input()
money = 100000
for i in range(n):
    money = math.ceil(money * 1.05/1000)*1000
print "%d" %(money)

Submission status: Accepted

Solution code:
import math

n = int(raw_input())
r = 100000
for i in range(n):
    r *= 1.05
    r = math.ceil(r/1000) * 1000
print int(r)

Submission status: Accepted

Solution code:
# Debt Hell

n = int(input())

value = 100000

for i in xrange(n):
	value *= 1.05
	if value % 1000 != 0:
		value = int(value / 1000 + 1) * 1000

print value

Submission status: Accepted

Solution code:
n = input()
d = 100000
for x in range(n):
        d += int(d*0.05)
        d = str(d)
        if d[-3:] != "000":
                d = d[:-3] + "000"
                d = int(d) +1000
        else:
                d = int(d)
print d

Submission status: Accepted

Solution code:
n , d = input() , 100000
for x in range(n):
        d += int(d*0.05)
        if d % 1000 != 0:
                d -= d % 1000
                d += 1000
print d

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    n = int(line)
    debt = 100000
    for k in range(n):
        debt *= 1.05
        if debt / 1000 - int(debt) / 1000 > 0:
            debt = (int(debt) / 1000 + 1) * 1000
        else:
            debt = int(debt)
    print debt

Submission status: Accepted

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

import math

result = 100000
num = int(raw_input())

for i in range(num):
	result *= 1.05
	result /= 1000
	result = math.ceil(result)
	result *= 1000

print int(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def kiriage(price):
    i = int(price) / 1000
    r = price % 1000
    if r != 0:
        return 1000 * (i + 1)
    else:
        return 1000 * i

if __name__ == '__main__':
    n = int(raw_input())
    price = 100000
    for i in range(0, n):
        price = kiriage(price * 1.05)
    print price

Submission status: Accepted

Solution code:
import math
m=100
for i in range(input()):m=math.ceil(m*1.05)
print "%d" %(m*1000)

Submission status: Accepted

Solution code:
s=100000
n=int(raw_input())

for i in range(0,n):
    s*=1.05
    if(s%1000>0):
        s=int(s/1000)*1000+1000
if(s%1000>0):
    s=int(s/1000)*1000+1000 
print s

Submission status: Accepted

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

import sys
from math import ceil

for line in sys.stdin.readlines():
    List = map(int, line.strip().split())
    
    n = List[0]
    yen = 100000
    for i in xrange(n):
        yen *= 1.05
        yen = int(ceil(yen/1000)) * 1000
    print yen

Submission status: Accepted

Solution code:
debt = 100000
for i in range(0, input()):
	debt *= 1.05
	debt /= 1000
	if (debt - int(debt) != 0.0):
		debt += 1
	debt = int(debt) * 1000
print debt

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(raw_input())
g,r=100000,1.05
for i in range(n):
    g*=r
    if int(g)%1000>0:
        g=(int(g)/1000)*1000+1000
print g

Submission status: Accepted

Solution code:
import math
print reduce(lambda a, b: int(math.ceil(a * 1.05 / 1000)) * 1000, range(input()), 100000)

Submission status: Accepted

Solution code:
import math
n = int(raw_input())
a = 100000
for i in range(n):
    a = int(math.ceil(a * 0.00105)) * 1000
print a

Submission status: Accepted

Solution code:
import math

n = input()
rent = 100000

for i in range(0, n):
  rent = math.ceil(rent*1.05/1000)*1000

print "%d"%rent

Submission status: Accepted

Solution code:
from math import ceil

n = int(raw_input())

debt = 100000

for i in range(n):
    debt = ceil(debt * 1.05 / 1000) * 1000

print int(debt)

Submission status: Accepted

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

		ans += 1000


print int(ans)

Submission status: Accepted

Solution code:
ans = 100000
n = int(raw_input())
for i in xrange(n):
	ans *= 1.05
	ans = int((ans+999)/1000)*1000;
print ans

Submission status: Accepted

Solution code:
from math import ceil

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

Submission status: Accepted

Solution code:
n = int(raw_input())
res = 100000
for i in range(0,n):
    res = res * 1.05
    if res % 1000:
        res += 1000
    res = int(res/1000)*1000
print res

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
j=100
for _ in range(int(input())):
	j=math.ceil(j*1.05)
print(j*1000)

Submission status: Accepted

Solution code:
a=100000

for i in range(int(input())):
    a *=1.05
    if a%1000 !=0:
        a=a-(a%1000)+1000
        
print(int(a))

Submission status: Accepted

Solution code:
n = int(input())
a = 100000
for i in range(n):
    a = a * 1.05
    b = 0
    if a % 1000:
        b = 1000
    a = int(a // 1000 * 1000 +b)
print(a)

Submission status: Accepted

Solution code:
n=int(input())
x=int(100000)
for i in range(1,n+1) :
    x = x*1.05
    if x%1000 == 0 :
        continue
    
    else :
        x = x//1000*1000+1000
        
print("{:.0f}".format(x))

Submission status: Accepted

Solution code:
a = 100000;
n = int(input())
while n > 0:
	n -= 1
	a = a + (a * 5) // 100
	a = ((a - 1) // 1000 + 1) * 1000  
print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a=int(input())
A=100
for i in range(a):
    A=math.ceil(A*1.05)
print(A*1000)

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math
res = 100
N = int(input())
for i in range(N):
    res = math.ceil(res * 1.05)
print("%d000" % res)

Submission status: Accepted

Solution code:
n = int(input())
S = 100000
for i in range(n) :
    S *= 1.05
    if S % 1000!= 0 :
        S = (int(S/1000)+1)*1000
print(S)

Submission status: Accepted

Solution code:
import math

n=int(input())

a=100

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

Submission status: Accepted

Solution code:
import math

n=int(input())
a=100000

for i in range(n):
    a=a+a*0.05
    if a%1000==0:
        a=a
    else: 
        a=(math.floor(a/1000))
        a=a*1000+1000

print(a)

Submission status: Accepted

Solution code:
import math
debt = 100000
n = int(input())

for i in range(n):
    debt *= 1.05
    debt = math.ceil(debt * 0.001)*1000
print(debt)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
n=int(input())
x=100000
for i in range(n):
    x=x*1.05
    
    if x%1000!=0:
        x=int(x//1000*1000+1000)

print(x)

Submission status: Accepted

Solution code:
import math

debt = 100000
n = int(input())

for i in range(n):
    debt *= 1.05
    debt = math.ceil(debt * 0.001) * 1000

print(debt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a=100
b=int(input())

for i in range(b):
    a=math.ceil(a*1.05)

print(a*1000)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
m = 100000
n = int(input())
while n > 0:
  n -= 1
  m = m + (m * 5 // 100)
  m = ((m-1) // 1000 + 1) * 1000
print(m)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
s=100000
for i in range(n):
  s*=1.05
  if s%1000!=0:
    s = (int(s / 1000) + 1) * 1000
print(s)

Submission status: Accepted

Solution code:
a = 100000;
n = int(input())
while n > 0:
	n -= 1
	a = a + (a * 5) // 100
	a = ((a - 1) // 1000 + 1) * 1000   
print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
s=100000
for i in range (n):
    s*=1.05
    s=int(s)
    if s%1000==0:
        s=s
    else:
        s=(int(s/1000)+1)*1000

print(s)

Submission status: Accepted

Solution code:
N=int(input())
a=100000
for i in range(N):
    x=a+(a*0.05)
    
    if x%1000==0:
        a=x
    else:
        a=(x-(x%1000))+1000

print(int(a))

Submission status: Accepted

Solution code:
import math
N = int(input())
A = 100
for i in range(N):
    A =math.ceil(A*1.05)
print (A*1000)

Submission status: Accepted

Solution code:
import math

S=100000
n=int(input())

for i in range(n):
    S*=1.05
    s=S/1000
    ceilnum = math.ceil(s)
    S=ceilnum*1000 

print(S)

Submission status: Accepted

Solution code:
import math
n = int(input())
a =  100000
for i in range(n):
    a =  a*1.05
    if a%1000 == 0:
        a = a
    else:
        a = (a//1000*1000+1000)
print(math.floor(a))

Submission status: Accepted

Solution code:
a= 100000;
n = int(input())
while n > 0:
	n -= 1
	a = a + (a * 5) // 100
	a = ((a - 1) // 1000 + 1) * 1000 
print(a)

Submission status: Accepted

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

Submission status: Accepted

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

m = 100000;
n = int(input())

while n>0:
    n -= 1
    m = m + (m*5)//100
    m = ((m-1) // 1000+1) * 1000
print(m)

Submission status: Accepted

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

for i in range(n):
    ans+=ans*0.05
    if ans%1000!=0:
        ans-=ans%1000
        ans+=1000
    ans=int(ans)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
kane=100000
n=int(input())
for i in range (1,n+1):
    syaku=kane*1.05/1000
    kane=math.ceil(syaku)*1000
print(kane)

Submission status: Accepted

Solution code:
money=100000
n=int(input())
for day in range(n):
    money+=money*0.05
    money=-(-money//1000)*1000
print(int(money))