Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(ans)
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		// tmp = Ceil(tmp, -4) なぜかうまくいかない
		tmp = Ceil(tmp, -3)
		fmt.Printf("now tmp: %d\n", int(tmp))
	}
	return tmp
}

func Ceil(f float64, places int) float64{
	shift := math.Pow(10, float64(places))
	return math.Ceil(f * shift)/shift
}

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

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

Python: import math
def int_ceil(src, range):
    return int(math.ceil(src/float(range)) * range)

def main():
    week = int(input())
    debt = 100000
    for _ in range(week):
        risi = debt * 0.05
        debt = int_ceil(debt + risi, 1000)
    print(debt)

if __name__ == "__main__":
    main()

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

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

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

Python: if __name__ == '__main__':
    # ??????????????\???
    weeks = int(input())
    principal = 100000

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

    # ???????????????
    print(int(principal))

Python: debt=10**5
interest=5/100
n=int(input())

for week in range(n):
 debt=debt(1+interest)
 if debt%1000>0:
  debt=debt+1000-(debt%1000)

print(debt)

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

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

print(int(debt))

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

Python: r=lambda x:(x*2+1)//2
n = int(input())
ans = 100000 + (100000 * (0.05 * n))
print(int(r(ans / 10000) * 10000))

Python: import sys
from decimal import Decimal

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

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

Python: import math

n=int(input())
debt=0
for i in range(1,n+1):
 debt+=i+0.05*100000
 result=debt+100000
 result=math.ceil(result/10000)*10000
print(result)

Python: import math

debt = 100000
n = int(input())

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

print(debt)

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

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

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

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

Python: import math
shuu = input()
num = int(shuu)
ganpon = 1
i = 1
while i < num:
    ganpon *= 1.05
    i += 1
    pass
kotae = ganpon * 100
kotae += 9
kotae = math.floor(kotae)
kotae *= 10000
print(kotae)

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

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

Python: i = int(input())

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

print(x)

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

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

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

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)

Python: # -*- coding: utf-8 -*-

n = int(input())
debt = 10000

for _ in range(n):
    tmp = debt * 0.05
    debt += tmp

print(round(debt / 1000) * 1000)

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

Python: import math

def calc_debt(week=0):
    return math.ceil(100000 * (1.05 ** (week))/10000)*10000

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

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

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

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

print(x*1000)

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

import math

def main():

    debtTime = int(input())

    ans = int(culcDebt(debtTime))

    print(ans)

def culcDebt(t):
    debt = 100000
    for i in range(t):
        print('debt = {0}'.format(debt))
        debt = debt * 1.05
        debt = 1000 * math.ceil(debt/1000)

    return debt


if __name__ == '__main__':
    main()

Python: import sys
import math

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

Python: import math

v = int(input())

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

print("%d" % cal)

Python: def next_week(x):
    return ((x * 1.05 + 1) // 1000 + 1) * 1000

def week_after(x, n):
    for _ in range(n):
        x = next_week(x)
    return x

if __name__ == '__main__':
    n = int(input())
    print(week_after(100000, n))

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

Python: import math
n = input()

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

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

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