Problem:


Debt Hell

Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.

Write a program which computes the amount of the debt in n weeks. 

Input

An integer n (0 ≤ n ≤ 100) is given in a line.

Output

Print the amout of the debt in a line.

Sample Input

5

Output for the Sample Input

130000



Sample input:
5


Sample output:
130000

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#借金を作る
i = 100000

#ループ回数を標準入力する
for _ in range(int(input())):
    
    #利息を加える
    i *= 1.05
    
    #切り上げがないとき以外1000より下を切り捨て1000を加える
    if i % 1000 != 0:
        i = i - (i % 1000) + 1000
        
#借金を出力する
print(int(i))

Submission status: Accepted

Solution code:
import math

s=int(input())
t=100

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(x*1000)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

print(x*1000)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(money)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

PAR = 0.05

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

a *= 1000

print(a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=100000;
n=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(money(n))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

n = int(input())
debt = 100000

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

print(debt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
###
### atcorder test program
###

import sys

### math class
class math:
    ### pi
    pi = 3.14159265358979323846264338

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

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

math = math()

### output class
class output:
    ### list
    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()

### input sample
#i = input()
#A, B, C = [x for x in input().split()]
#inlist = [int(w) for w in input().split()]
#R = float(input())
#A = [int(x) for x in input().split()]
#for line in sys.stdin.readlines():
#    x, y = [int(temp) for temp in line.split()]

### output sample
#print("{0} {1} {2:.5f}".format(A//B, A%B, A/B))
#print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi))
#print(" {}".format(i), end="")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#import math

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)

Submission status: Accepted

Solution code:
import math
n=int(input())
a=100
for i in range (n):
	a=math.ceil(a*1.05)
#四捨五入
#d_new=int(round(d+1,-4))
#from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
#d_new=Decimal(int(d)).quantize(Decimal('1E4'), rounding=ROUND_HALF_UP)
#切り捨て
#math.floor(11/3)
d=a*1000
print(int(d))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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