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>
using namespace std;
 
int main()
{
    int n,a = 100000;
    cin >> n;
    for(int i=0;i<n;i++)
    {
        a *= 1.05;
        if(a%1000)
        {
           a += 1000-a%1000;
         }
        
    }
    cout << cur << endl;
     
}

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

int main(){
	int n;
	int x = 100000;
	cin >> n;
	for(int i = 0; i < n; i++){
		x = x*21/20;
		if(x % 1000 != 0){
			x = (floor(x/1000)+1)*1000;
		}
	}
	cout << x << endl;
}

C++: #include <iostream>

using namespace std;

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

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

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

C++: #include <iostream>
using namespace std;
int main(){
	int n;
	cin >> n;
	int debt = 100000;
	for(int i = 0; i < n; i++){
		debt *= 1.05;
		debt += 999;
		debt /= 1000;
		debt *= 1000;
	}
	cout << debt << endl;
	return 0;
}

C++: #include <stdio.h>

int main(void){
	int i,n;
	int money = 100000;

	scanf("%d",&n);
	for(i = 0;i < n;i++){
		money += money / 100 * 5;
		if(money % 1000 != 0){
			money = money - money %1000;
			money += 1000;
		}
	}
	printf("%d\n",money);

	return 0;
}

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

int main()
{
  int n,dpt=100000;
  cin >> n;
  for(int i=0;i<n;i++){
    dpt /= 20;
    dpt *= 21;
    if(dpt - (dpt/1000)*1000 > 0)dpt = (dpt/1000+1)*1000;
     else dpt = (dpt/1000)*1000;
  }
  cout << dpt << endl;
  
  return 0;
}

C++: 
/* vo00_07.cpp */
#include <iostream>
using namespace std;

int main()
{
	int debt = 100000, n, tmp;

	cin >> n;
	while (n--) {
		debt *= 1.05;
		if (tmp = debt % 1000) { debt += 1000; }
		debt -= tmp;
	}

	cout << debt << '\n';

	return 0;
}

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

int main() {
	int debt = 100000; int n; cin >> n;
	for (int i = 0; i < n; i++) {
		debt *= 1.05;
		debt += (debt % 1000 > 0 ? 1000 - debt % 1000 : 0);
	}
	cout << debt << endl;
	return 0;
}

C++: #include<stdio.h>

int main(void){


	int n,risi,money=100000;
	
	
	
	int i;

	scanf("%d",&n);

	for(i=0;i<n;i++){
		risi = money*(5.0/100.0);

		money+=risi;

		if(money % 1000 != 0){
			money -= money%1000;
			money += 1000;
		}

	}

	printf("%d\n",money);

	return 0;
}

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

int main(){
	int week, yen=100000, hasuu;
	cin>>week;
	while(week--){
		yen = yen*1.05;
		if(hasuu=yen%1000){
			yen += 1000-hasuu;
		}
	}
	cout << yen <<endl;
	return 0;
}

C++: #include <iostream>
#define debt 100000

using namespace std;

int main(void){

  int n;
  cin >> n;

  int total = debt;
  for( int i = 0 ; i < n ; i++ ){
    total = total * 5 / 100 + total; 
    if( total % 1000 > 0 ){
      total = total / 1000 * 1000 + 1000;
    }
  }
  
  cout << total << endl;

  return 0;
}

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

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
long i,n,t=100;
cin>>n;
for(i=0;i<n;i++){t=ceil(t*1.05);cout<<"..."<<t*1000<<endl;}
cout<<t*1000<<endl;
return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <cstdio>

using namespace std;

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

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

using namespace std;

int main()
{
	const double rate = 1.05;
	int n;
	
	while (cin >> n) {
		double debt = 100;	// 100kYen
		
		for (int i = 0; i < n; ++i) {
			debt = ceil(debt * rate);
		}
		
		cout << debt << "000" << endl;
	}
	
	return 0;
}

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

int main()
{
	int n, debt = 100000;
	double risi = 1.05;

	cin >> n;
	for(int i = 0; i < n; i++){
		// ???????????????
		debt *= risi;
		//cout << debt << endl;

		// 1000?????????????????????
		if(debt % 1000 > 0)
			debt += 1000 - (debt % 1000);
	}
	cout << debt << endl;

	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0;i<n;i++)
#define INF (int) 2e9
#define MOD (int) 1e9 + 7

int main(){
    int n;
    cin >> n;
    int ans = 100000;
    rep(i, n){
        ans *= 1.05;
        if(ans%1000>0){
            ans /= 1000;
            ans++;
            ans *= 1000;
        }
    }
    cout << ans << endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a,n,i,b,j,ans=0,x=0,c;
	a=100000;
	cin>>n;
	for(i=1;i<=n;i++){
		a=a*1.05;
		b=a%1000;
		if(b==0){
		}else{
			for(x=1;x<=999;x++){
				a=a-1;
				c=a%1000;
				if(c==0)break;
			}
			a=a+1000;
		}
	}
	cout<<a<<endl;
	return 0;
}

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

int main(void){
    int n;
    cin>>n;
    long debt=100000;
    for(int i=0;i<n;i++){
        debt=(((long)(debt*1.05)+999)/1000)*1000;
    }
    cout<<debt<<endl;
    return 0;
}

C++: #include <math.h>
#include <ctype.h>
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, n) for (int i = a; i < n; i++)
#define REP(i, n) for(int i = 0; i < n; i++)
struct omt{omt(){ios::sync_with_stdio(false);cin.tie(0);}}star;

int main(){
    double n;
    cin >> n;
    double ans = 100000;
    REP(i, n){
        ans *= 1.05;
        if((int)ans % 1000 > 0){
            ans -= (int)ans % 1000;
            ans += 1000;
        }
    }
    cout << ans << endl;


    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <math.h>
#include <cmath>
#include <stdio.h>
#include <string>
#include <string.h>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <stdlib.h>

using namespace std;

int main (void)
{
	int n;
	cin >> n;

	int p = 100000;

	for (int i = 0; i < n; i++)
	{
		p += p * 0.05;
		ostringstream w;
		string ww,x;
		w << p;
		ww = w.str();
		int y = 0;
		y = ww.size();
		x = ww.substr(y - 3,3);
		if (x != "000")
		{
			p = ((p / 1000) + 1) * 1000;
		}
		
	}
	cout << p << endl;
}

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

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

	cin >> n;
	for(int i=0 ; i<n ; i++){
		money *= 1.05;
		if(money%1000 != 0){
			money += 1000 - (money%1000);
		}
	}
	cout << money << endl;
}

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

#define N 100000

using namespace std;

int main(void){
long int debt = 0;

  int n;
  cin >> n;
  int money = N;
  
  for(int i = 0;i < n;i++){
  	
  	if(((money *= 1.05) % 1000) != 0){
  		money += 1000 - (money % 1000);
  	}
  	
  }
  cout << money << endl;


  return 0;
}

C++: #include<iostream>
int main(){
	int n,m=100000;
	std::cin>>n;
	for(int i=0;i<n;i++){
		m+=m/100*5;
		if(m%1000!=0)m+=1000-m%1000;
	}
	std::cout<<m<<std::endl;
	return 0;
}