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

Solution (Python):
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))

Solution (Python):
import math

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

Solution (Python):
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()

Solution (Python):
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)
        
    else:
        debt = debt * (1+rishi)
        

print debt

Solution (Python):
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

Solution (Python):
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

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

Solution (Python):
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)

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

Solution (Python):
import math

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

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

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

Solution (Python):
import math

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

print(int(m))

Solution (Python):
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()

Solution (Python):
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()

Solution (Python):
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()

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

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

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

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

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

Solution (Python):
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()

Solution (Python):

import math
debt = 100000

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

print(debt)

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

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

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

Solution (Python):
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))

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

Solution (Python):
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))

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

Solution (Python):
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)

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

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

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

Solution (Python):
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)

Solution (Python):

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)))

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

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

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

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

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

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

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

Solution (Python):
import math

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

Solution (Python):
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))

Solution (Python):
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())))

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

Solution (Python):



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

Solution (Python):
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()

Solution (Python):
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()))

Solution (Python):
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())

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

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

Solution (Python):
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)

Solution (Python):


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))

Solution (Python):
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))

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

print m

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

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

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

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

Solution (Python):
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))

Solution (Python):
'''
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

Solution (Python):
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)

Solution (Python):
n = input();

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

print ans

Solution (Python):
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()))

Solution (Python):
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)

Solution (Python):
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

Solution (Python):

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)

Solution (Python):
print 13530000

Solution (Python):
print 13530000

Solution (Python):
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

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

Solution (Python):
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

Solution (Python):
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

Solution (Python):
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)

Solution (Python):
import math

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

Solution (Python):
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)

Solution (Python):


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

Solution (Python):
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

Solution (Python):
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

Solution (Python):
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

Solution (Python):



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)

Solution (Python):
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)

Solution (Python):
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

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

Solution (Python):
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

Solution (Python):


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

Solution (Python):
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

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

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

Solution (Python):
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)

Solution (Python):
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

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

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

Solution (Python):
import math

n = input()
rent = 100000

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

print "%d"%rent

Solution (Python):
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)

Solution (Python):
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)

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

Solution (Python):
from math import ceil

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

Solution (Python):
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

Solution (Python):
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))

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

Solution (Python):
a=100000

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

Solution (Python):
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))

Solution (Python):
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)

Solution (Python):
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))

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

Solution (Python):
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))

Solution (Python):
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))

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

Solution (Python):
import math

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

Solution (Python):
import math

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

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

Solution (Python):
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)

Solution (Python):
import math

n=int(input())

a=100

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

Solution (Python):
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)

Solution (Python):
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)

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

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

Solution (Python):


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)

Solution (Python):
import math

debt = 100000
n = int(input())

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

print(debt)

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

Solution (Python):
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))

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

Solution (Python):

import math

a=100
b=int(input())

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

print(a*1000)

Solution (Python):
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))

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

Solution (Python):
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))

Solution (Python):
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)

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

Solution (Python):
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))

Solution (Python):
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)

Solution (Python):
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))

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

Solution (Python):
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)

Solution (Python):
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))

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

Solution (Python):
import math

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

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

Solution (Python):



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

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

Solution (Python):
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)

Solution (Python):
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))

Solution (Python):
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)

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

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

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

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

Solution (Python):
num = 100000

n = int(input())
for i in range(n):
    num*=1.05
    
    if num % 1000 >= 1 :
        a = num % 1000
        num = int(num+1000-a)
    else:
        num = int(num)
        
        
print(num)

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

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

Solution (Python):
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)

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

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

Solution (Python):
n=int(input())
i=1
s=100000//1000
import math
while i <= n:
    i+=1
    s = s*1.05
    s = math.ceil(s)
    
print(s*1000)

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

Solution (Python):
import math

N=int(input())
a=100000

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

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

Solution (Python):
num = int(input())
val = 100000

for i in range(num):
    val = val * 1.05
    rem = val%1000
    if rem != 0:
        val = val - rem + 1000

print(int(val))

Solution (Python):
from math import ceil
s = 100000
n = int(input())
for i in range(n):
   s = s + s*0.05
   s = ceil(s/1000)*1000

print(s)

Solution (Python):
a=100000
n=int(input())

for i in range(n):
    a=a*1.05
    b=a%1000
    c=a//1000
    if b==0 :
        a=int(a)
    else:
        a=int(c*1000+1000)
print(a)

Solution (Python):

a = int(input())
n = int(100000)
for w in range(a):
  if (n*1.05)%1000 == 0:
    n = n*1.05
  else:
    n = n*1.05//1000*1000+1000
print(int(n))

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

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

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

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

Solution (Python):
import math
n = int(input())
a = 100

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

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

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

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

Solution (Python):
n=int(input())
syakkin=100000
for i in range(n):
    syakkin+=syakkin*0.05
    if syakkin%1000!=0:
        syakkin=(syakkin//1000)*1000+1000
        
print(int (syakkin))

Solution (Python):
import math
n=int(input())

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

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

Solution (Python):

i = 100000


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

print(int(i))

Solution (Python):
import math

s=int(input())
t=100

for i in range(0,s):
    t=math.ceil(t*1.05)
print(1000*t)

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

Solution (Python):
import math
n=int( input())
a=100000
for i in range(n):
    
    a+=a*0.05
    a=math.ceil(a/1000)*1000
   
print(math.floor(a))

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

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

Solution (Python):
n=int(input())
S=100000
for i in range(n):
    S = S*1.05
    R = S%1000
    if R:
        S = S-R+1000
print(int(S))

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

Solution (Python):
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))

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

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

Solution (Python):
n=int(input())
s=100000

for i in range(n):
    s+=s*0.05
    if s%1000==0 :
        pass
    else:
        s=(s//1000+1)*1000
print(int(s))

Solution (Python):
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))

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

Solution (Python):
n=int(input())
if 0<=n<=100:
    sum=100000
    for i in range(n):
        sum=sum*1.05
        if sum%1000==0:
            pass
        else:
            sum=sum-(sum%1000)+1000
    print(int(sum))

Solution (Python):
from math import ceil
debt=100000
bigets=1000
interest_rate=1.05

def calc_debt(n):
    d=debt//bigets
    while n>0:
        d=ceil(d*interest_rate)
        n -= 1
    return d*bigets
n=int(input())
print(calc_debt(n))

Solution (Python):
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))

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

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

Solution (Python):
n=int(input())
s=100000
a=1
a=a+1
for i in range(n):
    if (s*1.05)%1000==0:
        s=s*1.05
    else:
        s=s*1.05-(s*1.05)%1000+1000
print(int(s))

Solution (Python):
y=100000
n = int(input())
for i in range(n):
    y=y*1.05
    if y%1000==0:
        pass
    else:
        y=y//1000
        y=y+1
        y=y*1000
print(f"{y:.0f}")

Solution (Python):
import math

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

print(debt*1000)

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

Solution (Python):
n = int(input())
s = 100000

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

print(int(s))

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

Solution (Python):



n = int(input())

sum = 100000
for i in range(n):
   sum += sum * 0.05
   if sum % 1000 > 0:
      sum -= sum % 1000
      sum += 1000

print(int(sum))

Solution (Python):
n=int(input())
a=100000
while n!=0:
    a=a*1.05
    if a%1000!=0:
        a=a-(a%1000)+1000
    
    
    n=n-1
print(int (a))