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(int(ans))	// intにしないと指数つき表現になってしまう
}

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 next()string{
	sc.Scan()
	return sc.Text()
}

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

C++: #include<iostream>
//#define DEBT 100000

using namespace std;

main(){
int inNum,i;
int debt = 100000;

cin>>inNum;
cout<<"amount of the debt"<<endl;
for(i = 0; i <= inNum; i++){
debt*=1.05;
}
debt/=10000;
debt*=10000;
cout<<debt<<endl;
}

C++: #include <iostream>
using namespace std;

int main(){
    int ans = 100000;
    int n;
    cin >> n;
    for(int i=0;i<n;i++){
        ans += ans*0.05;
        if(ans%1000!=0)
            ans = ans-ans%1000 + 1000;
    }
    cout << ans << endl;

    return 0;
}

C++: #include <stdio.h>

int main(){
	int money = 100000;
	int n;

	scanf("%d", &n);
	for(int i=0 ; i<n ; i++){
		money += 100000.0 * 0.05;
		money += 1000 - (money%1000);
	}
	printf("%d", money);

	return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int n;
	int a;
	
	cin >> n;
	for(int i = 0; i < n; i++){
		n = n * 1.05;
	}
	n = 100000 + n*1000*5;
	a = n / 10000;
	cout <<  (a+1) * 10000  << endl;
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)

int main(int argc, char *argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int n, ret = 100000;
    cin >> n;

    REP(i, n)
    {
        ret = ret * 1.05;
        ret = (ret % 1000 == 0 ? ret : ret - ret % 1000 + 1000);
    }

    cout << ret << endl;

    return 0;
}

C++: #include <iostream>
#include<stdio.h>
using namespace std;
int main(void) {
	int a,n,i;
	int x=100000;
	scanf("%d",&n);
	for(i=0;i<n;i++){
	    x=x*105/100;
	    if(x%1000!=0){
	        a=(x/1000)+1;
	        x=a*1000;
	    }
            else{
               x=x;}
	}
	cout<<x<<endl;
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <utility>

#define ll (long long)
#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)


using namespace std;


int main(void)
{
    int n;
    long long money = 100000;
    int keta = 1;
    int judge = 1;
    double temp;
    cin >> n ;
    FOR(i, 1,n+1 )
    {
        money+= 0.05*money;
        temp = money;
        while(judge)
        {
            temp = (int)temp /10;
            if (temp) {
                keta++;
            }else
                judge = 0;
        }
        
        REP(i,3)
        money = money /10;
        money = ceil(money);
        //cout << money << endl;
        REP(i, 3)
        money = money*10;
        keta = 0;
        judge = 1;
    }
    
    
    cout << money << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n, k = 100000;

	cin >> n;

	for (int i = 1; i <= n; i++)
	{
		k = static_cast<int>(k * 1.05 + 999) / 1000 * 1000;
	}

	cout << k << endl;

	return 0;
}

C++: #include <iostream>
using namespace std;

int main(int argc, const char * argv[])
{
    int a, n, debt = 100000;
    double rate = 0.05;
    
    cin >> n;
    for (int i = 0; i < n; i++) {
        debt *= (1.00 + rate);
        a = debt % 1000;
        if (a != 0){
            debt = debt / 1000 * 1000 + 1000;
        }
    }
    cout << debt << endl;
    
    return 0;
}

C++: #include<stdio.h>
 
int main(){
    int  s=100000;
 
    int n;
    scanf("%d",&n);
 
 
    for(;n--;){
        if(int(s*1.05)%1000==0){
            s=int(s*1.05);
        }else{
            s= int(s*1.05) + (1000- int(s*1.05) % 1000);
        }
    }
    printf("%d\n",s);
 
    return 0;
}

C++: #include <stdio.h>

int main() {
    long long weeks = 0;
    double money = 100.0d;
    scanf("%d", &weeks);

    for (long long i = 0; i < weeks; ++i) {
        money *= 1.05d;
    }

    long long result = (int) money;
    if (result < money) {
        result += 1;
    }
    result *= 1000;
    printf("%d", result);

    return 0;
}

C++: #include <cstdio>
#include <cmath>

int main(){
  int n;
  scanf("%d",&n);
  
  double a=100;
  for(int i=0; i<n; i++){
    a*=1.05;
    a = ceil(a);
  }

  printf("%d\n",(int)a*1000);
}

C++: #include<bits/stdc++.h>
using namespace std;

main(){
	int n;
	cin>>n;
	
	int ans = 100000;
	for(int i=0; i<n; i++){
		ans = (int(ans + ans*0.05 + 999)/1000)*1000;
	}
	cout << ans << endl;
}

C++: #include <stdio.h>

int hoge(int a, int n){
	if(n<1){return a;}
	a*=1.05;
	if(a%1000){
		a+=(1000-a%1000);
	}
	return hoge(a, n-1);
}

int main (void)
{
	int n, i;
	scanf("%d", &n);
	
	int money=100000;
	for(i=0; i<n; i++){
		money+=money*0.05;
		if(money%1000){
			money+=(1000-money%1000);
		}
	}
	
	printf("%d\n", money);
	
	return 0;
}

C++: #include <iostream>
#include <cmath>

int main() {
	int loan = 100000;
	int hoge = loan * 0.05;
	int n;
	std::cin >> n;

	for (int i = 0; i < n; i++)
		loan += hoge;
	
	if (loan % 1000 < 500)
		loan = loan / 1000 * 1000;
	else
		loan = loan / 1000 * 1000 + 1000;
	
	std::cout << loan << std::endl;
}

C++: #include<iostream>
#include<cmath>
using namespace std;

int main(){
    double money = 10;
    int n;
    cin >> n;
    for(int i=0;i<n;++i){
        money = money*1.05;
    }
    money = ceil(money);
    cout << (int)(money*10000) << endl;
}

C++: #include <iostream>
using namespace std;
int main()
{
	int n;
	int i;
	int a=100000;
	cin >> n;
	for (i = 0; i < n; i++)
	{
		a = a*1.05;
		if (a % 1000 != 0)
		{
			a = a + 1000 - a % 1000;
		}
	}

	cout << a << endl;
}

C++: #include<iostream>
#include<math.h>

using namespace std;

int main()
{
	int a;
	double kane = 10;
	cin >> a;
	
	for(int i = 0; i < a; i++){
		kane = kane * 1.05;
	}
	/*
	cout << kane << endl;
	*/
	kane = ceil(kane);
	printf("%d0000\n",(int)kane);
	return 0;
}

C++: #include <bits/stdc++.h>
//#include <iostream>
//#include <Windows.h>
using namespace std;

int main(){
int n;
int a=100000;
cin>>n;
while (n--){
	a*=1.05;
	int l=a%1000;
	if(l>0)a+=1000-l;
	
}
cout<<a<<endl;
return 0;
}

C++: #include <iostream>
using namespace std;

unsigned long debt(int n) {
	unsigned long tmp;
	if(n == 0) return 100000;
	
	tmp = debt(n - 1) * 1.05;
	if(tmp % 1000 != 0)
		tmp = (tmp / 1000 + 1) * 1000;
	return tmp;
}

int main(void)
{
	int n;
	cin >> n;
	cout << debt(n) << endl;
	return 0;
}

C++: #include <iostream>
using namespace std;

int main(void){
    int i, week;
    int ans = 100000;
    cin >> week;
    for(i = 0; i < week; i++){
        ans = ans * 1.05;
        if(ans % 1000 < 500){
            ans = ans - ans % 1000;
        } else {
            ans = ans + (1000 - ans % 1000);
        }
    }
    cout << ans << endl;
}

C++: #include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
	int n,i,kane=100000;
	cin>>n;
	for(i=0;i<n;i++){
		kane=kane*1.05;
	}
	cout<<kane<<" ";
	kane=kane-kane%1000;
	kane=kane+1000;
	cout<<kane<<endl;
	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;

int main() {
  int n;
  double debt;
  int debt_i;
  cin >> n;
  debt = 100000;
  for (int i=0; i<n; i++) {
    debt *= 1.05;
    debt = ceil(debt/1000.0)*1000;
  }
  cout << (int)debt << endl;
}

C++: #include <cstdio>
int main() {
	int n,debt=100000;
	scanf("%d",&n);
	for(int i=0;i<n;i++) {
		debt=debt*1.05;
		if(debt%1000>0) {
			debt-=debt%1000;
			debt+=1000;
		}
	}
	printf("%d\n",debt);
}