Go: package main

import (
        "fmt"
        "math"
)

var interests [101]float64

func main() {
        var m int
        fmt.Scanf("%d", &m)
        fmt.Printf("%d\n", int(math.Ceil(interest(m)*10))*10000)
}

func interest(m int) (i float64){
        if interests[m] > 0 {
                return interests[m]
        }

        if m == 0 {
                interests[0] = 1.0
                return interests[0]
        }

        if m == 1 {
                interests[1] = 1.05
                return interests[1]
        }
        interests[m] = interest(m/2) * interest(m/2) * interest(m%2)
        return interests[m]
}

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

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

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

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

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

Python: i = int(input())

x = 100000
for _ in range(i):
    x = x + x * 0.05
x = round(x, -4)

print(int(x))

Python: import sys
import math

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

Python: n = int(input())
Mo = 100000*(1.05**n)
if Mo % 10000 != 0:
    Mo = (int(Mo/10000)+1)*10000
print(int(Mo))

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

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

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

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)

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

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

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

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

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

Python: a,i=5,100
import math
while a!=0:a,i=a-1,math.ceil(i*1.05)

Python: import math

class Debt(object):
    def __init__(self):
        self.debt = 100000
        
    def spend_a_week(self):
        self.debt = self._ceil_1000(self.debt * 1.05)

    def _ceil_1000(self, debt):
        return int(math.ceil(debt / 1000) * 1000)

def run():
    n = int(input())
    debt = Debt()
    for _ in range(n):
        debt.spend_a_week()
    print(debt.debt)

if __name__ == '__main__':
    run()

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

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)

Python: n = int(input())
dept = 100000
for i in range(n):
    dept += dept*0.05
print(int(round(dept,-4)))

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

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

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)

Python: import math
n = int(input())
a =  100000
for i in range(n):
    a =  a*1.05
    if a%1000 == 0:
        a = a
    else:
        a = (a//1000*1000+1000)
print(math.floor(a))

Python: import math
debt = 100000
for x in range (0, int(input())):
    debt = math.ceil(debt * 1.05, -3)
    
print(int(debt))

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)

Python: n=int(input())
print(n*10000+100000)

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

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

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)

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)

Python: N=int(input())
a=100000
for i in range(N):
    x=a+(a*0.05)
    
    if x%1000==0:
        a=x
    else:
        a=(x-(x%1000))+1000

print(int(a))

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

Python: import math

N=int(input())
a=100000

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

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)

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)

Python: # coding:utf-8
import math
debt = 100000

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

print(debt)

Python: #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main(): 
	week = int(input())
	base = 100000
	x = 1
	for i in range(week):
		x = round(x * 1.05 + 0.004 ,2)
	print(x)
if __name__ == '__main__':
  main()

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)

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

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

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

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

Python: import math

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

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)

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

Python: import math
n=int(input())
s=100000
for i in range(n):
	s +=(s*0.05)
s=s/10000
s=int(round(s,0)*10)
print(str(s)+"000")