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):
import math
x=100
for i in range(int(input())):
    x=math.ceil(x*1.05)
print(str(x)+"000")

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

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

for i in range(n):
    s = int((s*1.05)/1000+0.9999)*1000

print(s)

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

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

Solution (Python):


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

    y = 100000  
    y2 = y / 1000
    for i in range(0, n):

        y4 = y2 * 1.05
        
        y3 = float(int(y2 * 1.05))
        
        if y4 - y3 > 0:
            y4 += 1
        y2 = int(y4)
        

    print(y2 * 1000)

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

Solution (Python):
a = input()
ret = 100000

while 0<a:
	ret *= 1.05
	if(ret%1000):
		ret = int((ret//1000+1)*1000)
	a -= 1
	
print ret

Solution (Python):
import math
while True:
    try:
        n=input()
        x=100000
        for i in xrange(n):
            x=math.ceil(x*1.05/1000)*1000
        print(int(x))
    except EOFError: break

Solution (Python):
import math

n = int(raw_input())
debt = 100000

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

Solution (Python):



import sys

money = 100000

d = int(sys.stdin.read())
for i in range(d):
  money *= 1.05
  if money%1000 != 0:
    money -= money%1000
    money += 1000
print int(money)

Solution (Python):
a=100000
for _ in range(int(input())):
	a=((a*1.05)//1000+1)*1000 if (a*1.05)%1000 else a*1.05
print(int(a))

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

Solution (Python):
n=int(input())
value=int(100000)
for i in range(n):
    value=value/100*105
    if value%1000>0:
        value-=value%1000
        value+=1000

print(int(value))

Solution (Python):
import sys
import math

for line in sys.stdin:
    n = int(line)
    x = 100000
    y = 0
    for i in range(n):
        x += math.ceil(x*0.05/1000)*1000
    print(x)
    break

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

def roundup1000(num):
    return math.ceil(num  / 1000) * 1000

debt = 100000
for _ in range(int(input())):
    debt = roundup1000(debt * 1.05)
print(debt)

Solution (Python):
n = int(raw_input())
total = 100000
for i in range(1,n+1):
    total = total*1.05
    if total%1000!=0:
        total = int(total-total%1000 + 1000)
    else:
        total = int(total)
print total

Solution (Python):


m=100
for _ in range(int(input())):
    m = int(m*1.05+0.999)
print(m*1000)

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

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

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

print x

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

Solution (Python):
debt = 100000
n=int(raw_input())
for i in range(1,n+1):
    debt = debt*1.05
    if(debt % 1000) != 0:
        debt = (debt - (debt%1000)) + 1000
print int(debt)

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

Solution (Python):

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)

Solution (Python):
N = int(raw_input())

res = 100000
for i in range(N):
    res *= 1.05
    if res % 1000 > 0:
        res -= res % 1000
        res += 1000
print int(res)

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):
n = input()
a = 100000
for i in range(1,int(n)+1):
    a = int(a*1.05)
    if(a%1000 > 0):
        a = 1000*int(a/1000) + 1000

print(a)

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

print(m)

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

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

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

Solution (Python):
def main():
    n = int(input())
    debt = 100000

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

        if int(tmp_debt) > debt:
            debt += 1000

    print(debt)


if __name__ == '__main__':
    main()

Solution (Python):
from decimal import Decimal

def check(index):
    if index > len(debt_lis)-1:
        for i in range(len(debt_lis)):
            debt_lis[i] = '0'
        debt_lis.append('1')
        return
    if int(debt_lis[index]) + 1 == 10:
        return check(index+1)
    else:
        for i in range(index):
            debt_lis[i] = '0'
        num = int(debt_lis[index]) + 1
        debt_lis[index] = str(num)
        return

input_line = raw_input()
n = int(input_line)

debt = 100000
for i in range(n):
    debt = int((debt * Decimal(1.05))) 
    debt_lis = list(str(debt))
    debt_lis.reverse()
    for char_num in debt_lis[:3]:
        if not int(char_num) == 0:
            check(3)
            break
    debt_lis.reverse()
    debt = int(''.join(debt_lis))
print(debt)

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

Solution (Python):


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

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

for i in range(n):
    yen *= 1.05
    yen = int(yen)

    rest = int(yen % 1000)
    if (rest != 0):
        yen /= 1000
        yen = int(yen)
        yen *= 1000
        yen += 1000

print yen

Solution (Python):





n = float(raw_input())
dept = 100000
for i in range(int(n)):
    dept *= 1.05
    if not (dept/1000).is_integer():
        dept /= 1000
        dept = __import__('math',fromlist=['floor']).floor(dept)*1000+1000
print int(dept)

Solution (Python):
import math

weeks = int(input())
money = 100

for i in range(0, weeks):
    money = math.ceil(money * 1.05)

print(money * 1000)

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

Solution (Python):
import sys
import math

n = (int)(input())
money = 100000.0

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

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

Solution (Python):
import sys
n=int(sys.stdin.readline())
money=100000
for i in range(n):
    money*=1.05
    money=int(money)
    mod = money%1000
    money=money//1000
    if mod>0:
        money+=1
    money=money*1000
print (money)

Solution (Python):
from math import ceil
def roundint(num):
    fnum = float(num)
    inum = int(ceil(fnum * 0.001) * 1000)
    return inum

debt = 100000.0
n = input()
for x in xrange(n):
    debt += roundint(debt*0.05)
print int(debt)

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

Solution (Python):


import math

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

Solution (Python):
import math

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

Solution (Python):

def main():
    N = int(input())
    c = 100000
    for _ in range(N):
        c *= 1.05
        t = c % 1000
        if t > 0:
            c += 1000 - t
    print(int(c))

if __name__ == "__main__":
    main()

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

Solution (Python):
a = 100000
for i in range(int(input())):
    a += (int(a * 0.05) + 999) // 1000 * 1000
print(a)

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

Solution (Python):


inp = input()
x = 100000
for i in xrange(inp):
	x = x * 1.05
	if int(x % 1000) != 0:
		x += 1000 - int(x % 1000)

print int(x)

Solution (Python):
from math import ceil

yen = 100000
for i in range(int(input())):
    yen = ceil((yen*1.05)/1000)*1000
print(yen)

Solution (Python):


import math

PRINCIPAL = 100000
RATE = 0.05
ABOVE = 1000

n = int(raw_input())
debt = PRINCIPAL
for i in range(n):
    debt = int(math.ceil(float(debt)*(1+RATE)/ABOVE))*ABOVE
print debt

Solution (Python):
from math import ceil 
def interest(debt, rate, weeks):
    if weeks == 1:
        return ceil(debt * (1 + rate))
    else:
        return ceil(interest(debt, rate, weeks - 1) * (1 + rate))

rounds = 1000
rate = 0.05
debt = 100000
weeks = int(input())
print(int(rounds*interest(debt/rounds, rate, weeks)))

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

Solution (Python):
import math

def Interest(money,n):
    for i in range(n):
        money *= 1.05
        money = math.ceil(money)
    return money

m = 100
n = int(input())

print int(Interest(m,n)*1000)

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

for i in range(int(n)):
    add = int(ans*0.05)
    
    add_list = list(str(add))
    digits = len(add_list)    
    sub3 = int(add_list[digits-3]+add_list[digits-2]+add_list[digits-1])
    add = int("".join(add_list))
    
    if sub3<1000 and sub3 > 0:
        add = add - sub3 + 1000
        
        
    ans = ans + add
    

print(ans)

Solution (Python):


def main(): 
	week = int(input())
	base = 100000
	x = base
	for i in range(week):
		x = round(x * 1.05)
		if x % 1000 > 0:
			x = (x // 1000) *1000 +1000
	print(x)
if __name__ == '__main__':
  main()

Solution (Python):
import math

def calc_debt(week=0):
    debt = 100000
    for i in range(week):
        debt = int(math.ceil(debt * 1.05 / 1000))*1000
    return debt 

print(calc_debt(int(input())))

Solution (Python):
import math
n = input()
money = 100
for i in xrange(n):
    money *= 1.05
    money = math.ceil(money)
print "%i"%(money*1000)

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

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

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

Solution (Python):
import math

ans = 100000

n = int(raw_input())

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

print int(ans)

Solution (Python):
import math

debt = 100
n = int(input())

for _ in range(n):
	debt = math.ceil(debt * 1.05)

print(debt * 1000)

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

Solution (Python):
import math

n = eval(input())
yen = 100000
for i in range(n):
	yen += yen * 0.05
	yen = int(math.ceil(yen / 1000.0) * 1000)
print(yen)

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

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

for i in range(n):
    debt *= 1.05
    if debt % 1000 > 0:
        tmp = debt % 1000
        debt -= tmp
        debt += 1000

print(int(debt))

Solution (Python):
import math

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

Solution (Python):
import math

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

Solution (Python):
import sys
from decimal import Decimal

def main():
    n = int(sys.stdin.readline().strip())
    money = Decimal('100000')
    rate = Decimal('1.05')
    
    for _ in range(n):
        money *= rate
        if money % 1000:
            money = money // 1000 * 1000 + 1000

    print(money)
    
if __name__ == '__main__':
    main()

Solution (Python):
debt=100000
week=input()

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

print debt

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

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

money = 100000
par = 1.05

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

Solution (Python):
import sys

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

for i in range(0, n):
    borrowing *= 1.05
    borrowing = int((borrowing+999) / 1000) * 1000

print(borrowing)

Solution (Python):
num=int(input())
debt=100000
for i in range(1,num+1):
    debt+=((debt)/100)*5
    if not debt%1000==0:
        debt-=(debt%1000)
        debt+=1000
print(int(debt))

Solution (Python):
import sys

for num in sys.stdin:
    ini = 100000
    num = int(num)
    for i in range(1, num+1):
        ini = ini + ini*0.05
        mod = ini % 1000
        ini = ini - mod
        if mod != 0:
            ini += 1000
    ini = int(ini)
    print(ini)

Solution (Python):
n=input()
m = 100000

for _ in xrange(n):
    m = m + m*0.05
    if m % 1000:
        m = m + 1000 - m % 1000
print int(m)

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

for i in range(n):
    m = 1.05 * m
    r = m % 1000
    if r > 0:
        m = (m // 1000 + 1) * 1000

print(int(m))

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

Solution (Python):


import sys

def debt_interest(debt, weeks, rate=0.05, cut_up=1000):
    if weeks != 1:
        debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up)

    debt *= 1 + rate
    c = debt % cut_up
    if c != 0:
        debt += cut_up - c
    return debt

def main():
    debt = 100000.
    n = int(input())
    ret = debt_interest(debt, n)
    print(int(ret))

if __name__ == '__main__':
    main()

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

Solution (Python):
def cal(debt,n):
    if n==0: return debt
    for i in range(n):
        debt=debt*1.05
        if debt/1000>int(debt/1000):
            debt=(int(debt/1000)+1)*1000
    return debt

debt=100000
n=int(input())
print(cal(debt,n))

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

Solution (Python):
import math
n = int(input())
s = 100000
r = 0.05
while n > 0:
    s += math.ceil((s * r) / 1000) * 1000
    n -= 1
print(s)

Solution (Python):
D = 100000
N = int(raw_input())
for i in xrange(N):
    D += D/20
    if D % 1000 > 0:
        D += 1000-D%1000
print D

Solution (Python):
import math

def myceil(x,n):
  return math.pow(10,-n)*math.ceil(x*math.pow(10,n))

def debt(principal,w):
  if w==1:
    return int(myceil(principal*1.05,-3))
  else:
    return int(debt(myceil(principal*1.05,-3),w-1))



w=int(input())
print(debt(100000,w))

Solution (Python):
from math import ceil
from functools import reduce
print(reduce(lambda x, y: int(ceil(int(ceil(100000 * 1.05 / 1000) * 1000) * 1.05 / 1000) * 1000) if x == 0 else int(ceil(x * 1.05 / 1000) * 1000) , range(int(input()))))

Solution (Python):
money = 100000
for _ in range(int(input())):
    money += int(money * 0.05)
    if money % 1000 != 0:
        while money % 1000 != 0:
            money += 1
print(money)

Solution (Python):
from math import ceil
from functools import reduce
print(reduce(lambda x, y: int(ceil(x * 1.05 / 1000) * 1000) , [100000] + list(range(int(input())))))

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

print(int(debt))

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

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

Solution (Python):
if __name__ == '__main__':
    
    weeks = int(input())
    principal = 100000

    
    for i in range(weeks):
        interest = principal * 0.05
        principal += interest
        fraction = principal % 1000
        if fraction != 0:
            principal += (1000 - fraction)

    
    print(int(principal))

Solution (Python):
import math

while True:
    try:
        N = int(input())
    except ValueError:
        pass
    else:
        break

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

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

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

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

Solution (Python):


x = 100000
n = int(input())

for i in range(n):
    x = x + x*0.05
    a = x // 1000
    r = x % 1000
    if r != 0:
        x = 1000*a + 1000
    else:
        x = 1000*a
        
print(int(x))

Solution (Python):
x = int(input())

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

print(int(n))

Solution (Python):
n = int(raw_input())

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

Solution (Python):
import math

in_week = int(input().rstrip())
tmp_debt = 100000

for i in range(in_week):
    tmp_debt = int(math.ceil( (tmp_debt*1.05)/1000.0 )) * 1000

print(str(tmp_debt))

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

Solution (Python):
import math as k
n=input()
m=105
for i in range(n-1):
	m=k.ceil(m*1.05)
print int(m*1000)

Solution (Python):
import math

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

print(debt*1000)

Solution (Python):


import sys

n = int(sys.stdin.readline())
debt = 100000
for i in range(n):
    debt += debt // 20
    fraction = debt % 1000
    if fraction > 0:
        debt += 1000 - fraction
print(debt)

Solution (Python):
n = int(input())
x = 100000
for i in range(n):
    x += (x * 0.05 + 999) // 1000 * 1000
print(int(x))

Solution (Python):

week = int(input())
debt = 100000

for i in range(week):
    debt += debt * 0.05
    thousand = int(debt / 1000)
    coin = debt - thousand * 1000
    if 0 < coin:
        thousand += 1 
    debt = thousand * 1000

print(debt)

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

Solution (Python):
n=int(input())
debt=100
adds=1.05
for i in range(n):
    debt*=adds
    if debt%1!=0:
        debt=int(debt)+1
print(debt*1000)

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

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

Solution (Python):
base, rate = 100, 0.05
for _ in range(int(input())):
    increment = base * rate
    base += round(increment + (0 if increment.is_integer() else 0.5))

print(base * 1000)

Solution (Python):
base, rate = 100, 1.05
for _ in range(int(input())):
    base *= rate
    if not base.is_integer():
        base = int(base) + 1

print(base * 1000)

Solution (Python):
i = int(input())

x = 100000
for _ in range(i):
    x *= 1.05
    x = int((x+999) / 1000) * 1000

print(x)

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

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

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

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

Solution (Python):


import sys
import os
import math


N = int(input())
cost = 100000

for i in range(N):
    cost *= 1.05
    cost = round(cost)

    if cost % 1000 > 0:
        cost = (cost // 1000) * 1000 + 1000
print(cost)

Solution (Python):
import sys
import math

def main():
    n = int(input().rstrip())
    r = 1.05
    digit = 3
    a = 100000
    
    for i in range(n):
        a = math.ceil(a*r/10**digit)*10**digit

    print(a)
    
if __name__ == '__main__':
    main()

Solution (Python):
import math

n = int(input())
ans = 100000
for i in range(n):
    ans += ans * 0.05
    ans = int(math.ceil(ans / 1000) * 1000)
print(ans)

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

Solution (Python):
import sys
import math

for line in sys.stdin:
    debut = 100000
    weeks = int(line)
    for i in range(weeks):
        debut = debut * 1.05
        debut = math.ceil(debut/1000)*1000
    print(debut)

Solution (Python):
import sys

def compoundInterest(x, i, n):
    if n == 0:
        return x

    ans = int(x * (1 + i))
    hasu = ans % 1000
    if hasu != 0:
        ans -= hasu
        ans += 1000
    return compoundInterest(ans, i, n-1)

if __name__ == "__main__":
    n = int(input())
    ans = compoundInterest(100000, 0.05, n)
    print (ans)

Solution (Python):
import sys
import math

monney = 100000
n = int(sys.stdin.readline().rstrip())
for i in range(n):
    monney = math.ceil(monney * 1.05 / 1000) * 1000
print(monney)

Solution (Python):
def debt(x):
	nx = x * 105 / 100
	ha = nx % 1000
	nx -= ha
	if ha != 0:
		nx += 1000
	
	return nx

n = int(raw_input())
x = 100000

for i in range(0, n):
	x = debt(x)

print x

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

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

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

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

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

Solution (Python):
from math import ceil

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

Solution (Python):



def update(x):
    y = x * 105 // 100
    r = y % 1000
    y = y // 1000 * 1000
    if r: y += 1000
    return y

def main():
    n = int(input())

    x = 100000
    for _ in range(n):
        x = update(x)

    print(x)

if __name__ == "__main__": main()

Solution (Python):
import math
def DebtHell():
    n = int(input())
    debt = 100000
    
    while n>0:
        n-=1
        debt*=1.05
        debt = int(int(math.ceil(debt/1000)*1000))

    print(debt)
    
    
DebtHell()

Solution (Python):
def main():
	from math import ceil

	debt = 100000
	n = int(input())

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

	print(debt)


if __name__ == '__main__':
	main()

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

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

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

Solution (Python):
from math import ceil

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

print(debt * 1000)

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

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

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

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

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

Solution (Python):
import math

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

print(y*1000)

Solution (Python):
import math

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

print(y*1000)

Solution (Python):
import math

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

print(y*1000)

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

Solution (Python):
import math

v = int(input())

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

print("%d" % cal)

Solution (Python):
import math

ans = 100000

n = int(raw_input())

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

print int(ans)

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

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

Solution (Python):


import sys, math, os


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)

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

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

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

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

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

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

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

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

Solution (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

Solution (Python):
import math

n = int(input())
d = 100000

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

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

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

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

Solution (Python):
import math

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

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

Solution (Python):



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

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

Solution (Python):


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

Solution (Python):
import math

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

Solution (Python):


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)