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: import math

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

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

for i in range(n):
    s = int((s*1.05)/1000+0.9999)*1000

print(s)

Python: num = int(input())
debt = 100000
for x in range(num):
    debt = debt * 105 / 100
    if debt % 1000 != 0:
        debt = ((debt // 1000) + 1) * 1000
    else:
        pass
print(int(debt))

Python: n = 10 ** 2
for i in range(int(input())) :
    n = float(n) * 1.05
    if n - int(n) > 0 : n = int(n) + 1
    else : n = int(n)
print(n * (10 ** 4))

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

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

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

Python: n = input()
m = 100000
for i in range(n):
 m *= 1.05
 m = (m + 900) / 1000 * 1000

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

Python: base, rate = 100, 0.05
for _ in range(int(input())):
    increment = base * rate
    base += round(increment + (0 if increment.is_integer() else 0.5))

print(base * 1000)

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

Python: import math
price = 100000.0
n = int(raw_input())
for i in range(n):
    price = ceil((price * 1.05) / 1000) * 1000

Python: from math import ceil
n=int(input())
s=100000
for i in range(n):
	s +=(s*0.05)
	s=int(int(ceil(s/1000)*1000))
print(s)

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
week = int(input())
debt = 100000
for i in range(week):
    debt = math.ceil(debt*1.05/1000)*1000
print(int(debt))

Python: def next_week(x):
    return ((x * 1.05) // 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: import math
n=int(input())
a=100000
for i in range(n):
    a=math.ceil(1.05*a/1000)*1000
print(a)

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

Python: import math

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

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

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

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

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

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

Python: # coding: utf-8
# Your code here!
n=int(input())
x=100000
for i in range(n):
    x=x*1.05
    
    if x%1000!=0:
        x=int(x//1000*1000+1000)

print(x)

Python: #Write the program you'd like to run below.
import math
week = int(input())
debt = int(100000)
for i in range(week):
  debt = debt * 1.05
  debt = math.ceil(debt/10000)
  debt = int(debt * 10000)
print(debt)

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

Python: from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
debt = 100000.0
for i in xrange(int(raw_input())):
    debt += debt * 0.05
    debt = debt - (debt % 1000.0) + (1000.0 if debt % 1000.0 else 0.0)
print(int(debt))

Python: import math

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

Python: n=int(input())
a=100000
for i in range(n):
    a*=1.05
print(int(round(a, -4)))

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

Python: import sys

def main():
    n = int(input().rstrip())
    r = 1.05
    digit = -4
    a = 100000
    
    print(int(round(a*(r**n), digit)))
    
if __name__ == '__main__':
    main()

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

print(m)

Python: a=int(input())
for i in range(5):
	a*=1.05
	if a%1000==0:
		pass
	else:
		a=(a+1000)-a%1000
print(int(a))

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

Python: import math
def DebtHell():
    n = int(input())
    debt = 100000
    
    while n>0:
        n-=1
        debt*=1.05
        debt = int(int(math.ceil(debt/1000)*1000))

    print(debt)
    
    
DebtHell()

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: import math
x=100
for i in range(int(input())):
    x=math.ceil(x*1.05)
print(str(x)+"000")

Python: import math

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

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

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

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

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

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

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

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

print(a)

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

Python: import math

debt = 100
n = int(input())

for _ in range(n):
	debt = math.ceil(debt * 1.05)

print(debt * 1000)