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: Wrong Answer

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

num = int(raw_input())
result = 10
for i in range(num):
	result *= 1.05

print int(round(result))*100

Submission status: Wrong Answer

Solution code:
import math

num = int(raw_input())
result = 10
for i in range(num):
	result *= 1.05

print int(math.ceil(result))*10000

Submission status: Wrong Answer

Solution code:
import math

num = int(raw_input())
result = 100
for i in range(num):
	result *= 1.05

print int(math.ceil(result))*1000

Submission status: Wrong Answer

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

import math

num = int(raw_input())
result = 100
for i in range(num):
	result *= 1.05

print int(math.ceil(result))*1000

Submission status: Wrong Answer

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

import sys

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 = yen/1000 * 1000
    print yen

Submission status: Wrong Answer

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

import sys

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(yen/1000) * 1000
    print yen

Submission status: Wrong Answer

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

import sys
from math import ceil

for line in ["5"]:#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: Wrong Answer

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

Submission status: Accepted

Solution code:
import math
x=100
for i in range(int(input())):
    x=math.ceil(x*1.05)
print(str(x)+"000")

Submission status: Accepted

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

Submission status: Accepted

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

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

print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 累積計算

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

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

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

    print(y2 * 1000)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
ret = 100000

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

n = int(raw_input())
debt = 100000

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

Submission status: Accepted

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

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = 100000
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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! /usr/bin/python3

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(m)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
n = input()
debt = 1e5
for i in range(0, n):
    debt *= 1.05
    debt = math.ceil(debt/1000) * 1000
print int(debt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
#Problem Name: Debt Hell
#ID: tabris
#Mail: t123037@kaiyodai.ac.jp

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)

Submission status: Accepted

Solution code:
import math

weeks = int(input())
money = 100

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

print(money * 1000)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
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)

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#encoding=utf-8

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)

Submission status: Accepted

Solution code:
from math import ceil

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
ans = 100000

for i in range(int(n)):
    add = int(ans*0.05)
    #print("first_add:" + str(add))
    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))
    #print("sub3:"+ str(sub3))
    if sub3<1000 and sub3 > 0:
        add = add - sub3 + 1000
        #print("revised_add:" + str(add))
        
    ans = ans + add
    #print("ans:" + str(ans))

print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
import math

debt = 100
n = int(input())

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

print(debt * 1000)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
n=int(input())
x=100000
for i in range(n):
    x=x*1.05
   # print('5%',x)
    x=x/1000
    #print('/1000',x)
    x=math.ceil(x)
    #print('cut',x)
    x=x*1000
    #print('*1000',x)
print(x)

Submission status: Accepted

Solution code:
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(up*1000, money)
print(money)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
m = 100000

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# -*- coding:utf-8 -*-

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

Submission status: Accepted

Solution code:
x = int(input())

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

print(int(n))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

print(debt*1000)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

#for i in sys.stdin:
#	a,b=map(int,i.split())
#	print(gcd(a,b),lcm(a,b))

Submission status: Accepted

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

Submission status: Accepted

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

print(base * 1000)

Submission status: Accepted

Solution code:
i = int(input())

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

print(x)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(int(debt))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import ceil

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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