Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	sc.Scan()
	n, _ := strconv.Atoi(sc.Text())
	dbt := 100000

	for i := 0; i < n; i++ {
		dbt = dbt * 105 / 100
		if dbt%1000 > 0 {
			dbt = dbt - (dbt % 1000) + 1000
		}
	}

	fmt.Println(dbt)
}

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: round=lambda x:(x*2+1)//2
n = int(input())
ans = 100000 + (100000 * (0.05 * n))
print(int(round(ans / 10000) * 10000))

Python: import math

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

print(y*1000)

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

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

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

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)

Python: n = int(input())
ans = 100000 + (100000 * (0.05 * n))
print(int(round(ans / 10000) * 10000))

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

Python: 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
print(ganpon)

Python: import math

s=int(input())
t=100

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

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

Python: import math
n = int(input())
money = 10**5
for i in range(n):
    money *= 1.05
    money_c = math.ceil(money * 0.001)
    money = money_c * 1000
print(money)

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

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

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

Python: import math

n = int(input())
b = 100
for i in range(n):
  b += b * 0.05
  b = math.ceil(b)
b *= 1000
print("%d" % b)

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

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)

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())
i=0
E=100
while(i<n):
    E=E*1.05
    E=math.ceil(E)
    i=i+1

print(E*1000)

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

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

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

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

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

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)