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
n = int(input())

if n==0:
    a=100000
    
else:
    c = int(100)
    for i in range(n):
        num = c*1.05
        c = math.ceil(num)
        a = c*1000
        
print(a)

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

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

Solution (Python):
n=int(input())
s=100000
for i in range(n):
    s=s*(1+5/100)
    s=-(-s//1000)
    s=s*1000
print(int(s))

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

if n==0:
    a=1000000
else:
    c=int(100)
    for i in range(n):
        num=c*1.05
        c=math.ceil(num)
        a=c*1000
        
print(a)

Solution (Python):


import math
n = int(input())

if n==0:
    a=n
else:    
    c=int(100)
    for i in range(n):
        num = c*1.05
        c = math.ceil(num)
        n = c *1000
print(n)

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

if n == 0:
    a=100000
else:
    c = int(100)
    for i in range(n):
        num = c*1.05
        c = math.ceil(num)
        a = c*1000

print(a)

Solution (Python):
import math
n=int(input())
i=0
E=100
while(i<n):
    E=E*1.05
    E=math.ceil(E)
    i=i+1

print(E*1000)

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

m=100000

for i in range(n):
    m=m*1.05
    if m%1000==0:
        pass
    else:
        m=m-m%1000+1000
print(int(m))

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

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

Solution (Python):
import math
n=int(input())
z=100000
for i in range(1,n+1):
  z+=z*5/100
  z=(math.ceil(z/1000))*1000
print(z)

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):
import math
n=int(input())
S=100
for i in range(n):
    S=S+0.05*S
    S=math.ceil(S)
print(S*1000)

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

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

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

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

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

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

a = 100000

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

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

Solution (Python):
a = int(input())
Y = 100000
i = 1

while a >= i:
    Y = Y * 1.05
    if  Y % 1000 != 0:
        Y = (Y//1000+1) * 1000
        
    i = i + 1
print(int(Y))

Solution (Python):

from math import floor, ceil
n = int(input())
sum = 100000
for i in range(n):
    sum += sum*0.05
    if sum%1000 == 0:
        sum = sum
    else:
        sum = ((sum//1000)+1) * 1000
print(int(sum))

Solution (Python):
n=int(input())
i=1
sum=100000
while i<=n:
    M=(sum)*0.05
    sum+=M
    if (sum)%1000==0:
        sum=sum
    else:
        sum=((sum//1000)+1)*1000
    i+=1
print(int(sum))

Solution (Python):
n = int(input())
now = 100000
week = 0
for week in range(n):
    calc = (int)(now * 0.05)
    now += (calc//1000)*1000
    if calc % 1000:
        now += 1000
print(now)

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

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

z=100000

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

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

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

print(x*1000)

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

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

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

Solution (Python):
n = int(input())
i = 1
x = 100000
while i<=n:
    r = x * 0.05
    x += r
    if x % 1000 >0:
        x = (x //1000 + 1)*1000
    i += 1
print(f'{x:.0f}')

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

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

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

for i in range(n):
    S = int(S*1.05)
    slist = list(str(S))
    if slist[-3:] == ['0','0','0'] :
        S = S
    else:
        S = S  - int(slist[-3])*100 - int(slist[-2])*10 - int(slist[-1])*1 + 1000

print(S)

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

Solution (Python):
import math
N = int(input())
o = 100.000
for i in range(N):
    o += math.ceil(o*0.05)
    i += 1
print(int(o*1000))

Solution (Python):
n=int(input())
g=100
for i in range(n):
    k=-(-(g*1.05)//1)
    g=k
print(int(1000*k))

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

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

Solution (Python):
n=int(input())
a=100000
i=0
while i<n:
    a=(a/100)*105
    if a%1000!=0:
        a+=(1000-a%1000)
    i+=1
print(int(a))

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

Solution (Python):
import math

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

print(x*1000)

Solution (Python):
import math

n=int(input())
a=100000

for _ in range(n):
    a+=a*0.05
    a=math.ceil(a/1000)*1000

print(math.floor(a))

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):
x=int(input())
i=0
a=100000
while x>i :
    a=a+a*0.05
    if a%1000!=0 : a=a+1000
    a=int(a/1000)
    a=a*1000
    i=i+1
print(a)

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

n=int(input())
a=100
i=1
while i<=n:
    a+=a*0.05
    a=math.ceil(a)
    i+=1

print(a*1000)

Solution (Python):
n=int(input())
i=0
money=100000
while i<n:
    money+=money*5//100
    if(money%1000!=0):
        money=money+1000-money%1000
    i+=1
print(money)

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

for x in range(n):
    T*=1.05
    if T%1000==0:
        pass
    else:
        T=T-(T%1000)+1000
print(int(T))

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

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):
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):
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
res = 100
N = int(input())
for i in range(N):
    res = math.ceil(res * 1.05)
print("%d000" % res)

Solution (Python):
money =100000
import math
count = int(input())

for i in range(count):
    newmoney =math.ceil(money*1.05/1000)*1000
    money=newmoney

print(money)

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())
x = 100000
for i in range(n):
  x *= 1.05
  x = math.ceil(x)
  if x % 1000:
    x = x - (x % 1000) + 1000
print(x)

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

Solution (Python):
import sys
import math
def rishi(n,a):
    if(n>0):
        a=a*1.05
        a1=a%1000
        if(a1 != 0):
            a=a-a1+1000
        n=n-1
        return (rishi(n,a))
    else:
        return a

a=100000
n=int(input())
n_sum=rishi(n,a)
print(round(n_sum))

Solution (Python):
import math

def debt(d, n):
    if n == 0:
        return d
    d *= 1.05
    d = math.ceil(d / 1000) * 1000
    return debt(d, n - 1)

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

Solution (Python):
import math

PAR = 0.05

sum = 100000
for i in range(int(input())):
    sum += math.ceil(sum * PAR / 1000) * 1000
print(sum)

Solution (Python):
import math

debt = 100000
rate = 0.05
n = int(input())

def CalcDect():
    global debt
    global n

    if n <= 0:
        return

    debt += (debt * rate)
    debt = int(math.ceil(debt / 1000)) * 1000
    n -= 1
    CalcDect()

CalcDect()
print(debt)

Solution (Python):
from decimal import Decimal,ROUND_UP
n = int(input())
a = 100000
for i in range(n):
    a = a * 1.05
    y = Decimal(str(a))
    a = y.quantize(Decimal('1E3'), rounding=ROUND_UP)
    a = int(a)
print(a)

Solution (Python):
while True:
    try:
        n = int(input())
        dept = 100000
        for i in range(0,n):
            dept += dept * 0.05
            round = dept % 1000
            if round > 0:
                dept += 1000 - round
        print(int(dept))
    except:
        break

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

print(x)

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

Solution (Python):
import math;print([(x.append(y), x) for x in [[100000]] for _ in range(int(input())) for y in [math.ceil(x[-1] * 1.05 / 1000)*1000]][-1][-1][-1])

Solution (Python):
n = int(input())
d = 100000
for i in range(n):
    d = d *105 //100
    d = -(-d//1000)*1000
print(d)

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

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

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

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

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

a *= 1000

print(a)

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

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

money = 100000

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

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

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 = 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 = 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
a=100
for _ in range(int(input())):a=math.ceil(a*1.05)
print(a*1000)

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):
a=100
for _ in[0]*int(input()):a=int(a*1.05)+(a%20>0)
print(a*1000)

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

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

m = 100000
n = int(input())
for i in range(n):
    m = m*1.05
    h = 0;
    if m % 1000:
        h = 1000
    m = int(m // 1000 * 1000 + h)
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):
import math
n= int(input())

def money(x):
  A =100
  for i in range(x):
    A=math.ceil(A*1.05)  

  return A*1000

print(money(n))

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

Solution (Python):
if __name__ == '__main__':

	n = int(input())

	s = 100000

	for i in range(n):
		s += int(s*(0.05))
		
		tmp0 = str(s)
		tmp1 = len(tmp0)
		tmp2 = tmp0[0:tmp1-3]
		num = tmp2 + "000"
		if int(s) - int(num) != 0:
			s = int(num) + 1000

	print(s)

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

Solution (Python):
import math

n = int(input())
debt = 100000

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

print(debt)

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

Solution (Python):




import sys


class math:
    
    pi = 3.14159265358979323846264338

    
    def gcd(self, a, b):
        if b == 0:
            return a
        return self.gcd(b, a%b)

    
    def lcm(self, a, b):
        return (a*b)//self.gcd(a,b)

math = math()


class output:
    
    def list(self, l):
        l = list(l)
        print(" ", end="")
        for i, num in enumerate(l):
            print(num, end="")
            if i != len(l)-1:
                print(" ", end="")
        print()

output = output()















m = 100000

for i in range(int(input())):
    m *= 1.05
    if m%1000 != 0:
        m = (m//1000+1) * 1000
    else:
        m = (m//1000) * 1000

print(int(m))

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

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

Solution (Python):
N=int(input())
def syakkin(N):
    pri=100000
    for i in range(N):
        pri=pri*1.05
        if pri%1000:
            pri=pri-(pri%1000)+1000
    return int(pri)
print(syakkin(N))

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

Solution (Python):


from math import ceil

n = int(input())

debt = 100000

for i in range(0, n):
    debt = debt * 1.05
    debt = int(ceil(debt / 1000.0) * 1000.0)

print(debt)

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

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

Solution (Python):
debt = 100000

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

Solution (Python):
n=int(input())
dept=100000
for i in range(n):
    A=dept*0.05/1000
    if(A!=int(A)):
        dept=dept+int(A)*1000+1000
    else:
        dept=dept+int(A)*1000
print(dept)

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
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())
debt = 100000
for i in range(n):
   x = debt*1.05
   if x%1000==0:
       debt = x
   else:
       debt = (x//1000)*1000+1000

print(int(debt))

Solution (Python):


def up(a):
    m = a//1000*1000
    if a%1000 > 0:
        return  int(m + 1000)
    else:
        return int(a)

n = int(input())
m = 100000

for i in range(n):
    m = m * 1.05
    m = up(m)

print(m)

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):
import math
n=int(input())
a=100
for i in range (n):
	a=math.ceil(a*1.05)






d=a*1000
print(int(d))

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

Solution (Python):
while True:
	try:
		n = int(input())
	except EOFError:
		break
	ret=100000.0
	for i in range(n):
		ret=round(ret*1.05+499, -3)
	print(int(ret))

Solution (Python):
import math

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

Solution (Python):
week = int(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 = int(input())
def debt(i):
    if i == 0:
        return 100000
    else:
        return math.ceil(debt(i-1)*1.05/1000)*1000
print(debt(n))

Solution (Python):
n = int(input())
amount = 100000
for i in range(n):
    amount = int(-(-amount * 1.05 // 1000) * 1000)
print(amount)

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

zandaka=100000

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

print(int(zandaka))

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

money = 100000

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

print(money)

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

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())
a = 100000
for _ in range(N):
    a *= 1.05
    if a%1000:
        a -= a%1000
        a += 1000
print(int(a))

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

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

Solution (Python):
import math

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

    print(m * 1000)


if __name__ == '__main__':
    run()

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

base = 100000
for i in range(n):
  base *= 1.05

  base /= 1000

  base = math.ceil(base)

  base *= 1000

print(base)

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

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

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

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

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

print money