Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func calc(n int) float64 {
	tmp := 100000.0
	for i := 0; i < n; i++ {
		tmp *= 1.05
		tmp = ceil(tmp, -3)
	}
	return tmp
}

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

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

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 sys

for line in sys.stdin:
    N = int(line.rstrip())
    print(len([[i0,i1,i2,i3] for i0 in range(10) for i1 in range(10) for i2 in range(10) for i3 in range(10) if sum([i0,i1,i2,i3]) == N]))

Python: # coding:utf-8
import math
week = int(input())
debt = 100000

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

print(debt)

Python: import math

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

print(y*1000)

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)

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

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

Python: n = int(input())

print(int(round(100000 * (1.05 ** n), -4)))

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

Python: i = int(input())

x = 100000
for _ in range(i):
    x *= 1.05
    x = int((x+999) / 1000) * 1000

print(x)

Python: i=100
for ii in range(int(input())):
    i+=i/20
    if i!=int(i):
        i=int(i+1)
print(str(int(i*1000)))

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())
a=100000
for i in range(n):
    a*=1.05
print(int(round(a, -3)))

Python: import math

def myceil(x,n):
  return math.pow(10,-n)*math.ceil(x*math.pow(10,n))

def debt(principal,w):
  if w==1:
    return int(myceil(principal*1.05,-3))
  else:
    return int(debt(myceil(principal*1.05,-3),w-1))



w=int(input())
print(debt(100000,w))

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

Python: import math
d=100
for _ in[0]*int(input()):d=math.ceil(d*1.05)
print(int(d*1e3))

Python: import math

def roundup1000(num):
    return math.ceil(num  / 1000) * 1000

debt = 100000
for _ in range(int(input())):
    debt = roundup1000(debt * 1.05)
print(debt)

Python: a=100
for _ in[0]*int(input()):a=int(a*1.05+1)
print(a*1000)

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

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

Python: # -*- coding: utf-8 -*-
from math import ceil 
n = int(input())
d = int(1e5)
for x in range(n):
    d = (1.05*d)
    d + int(int(ceil(d/1e3))*1e3)
print (d)

Python: print(lambda f,n:f(f,n))(lambda f,n:n==0 and 100000 or(lambda x:x%1000>0 and x-x%1000+1000 or x)(f(f,n-1)*105/100),int(raw_input()))

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

Python: base, rate = 100, 1.05
for _ in range(int(input())):
    base *= rate
    if not base.is_integer():
        base = int(base) + 1

print(base * 1000)

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

print(int(money))

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

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

Python: import math
n = int(input())
debt = 10**5
for i in range(5):
    debt *= 1.05
    few = math.ceil(debt / 10000)
print(few * 10000)

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

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
#ganpon /= 1000
#ganpon = math.ceil(ganpon)
#ganpon *= 100000
print(ganpon)

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

Python: import math

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

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)

Python: import math
while True:
    try:
        n=input()
        x=100000
        for i in xrange(n):
            x=math.ceil(x*1.05/1000)*1000
        print(int(x))
    except EOFError: break

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

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)

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())
A = 100000
for _ in range(N):
    A = A * 1.05
A = (int(math.ceil(A / 10000))) * 10000
print(A)

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

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)

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

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

Python: import math
n=int(input())
x=100000
for i in range(n):
    x=x*1.05
   # print('5%',x)
    x=x/1000
    #print('/1000',x)
    x=math.ceil(x)
    #print('cut',x)
    x=x*1000
    #print('*1000',x)
print(x)

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

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

if __name__ == '__main__':
    main()

Python: i=100
for ii in range(int(input())):
    i+=i/20
    if i!=int(i):
        i=int(i+1)
print(str(i*1000))

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

Python: import math

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

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