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
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;

#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define REP(i,e) for (int i = 0; i != int(e); i++)
#define FORIT(i, A) for (auto i : A)
#define ISEQ(c) (c).begin(), (c).end()
#define PRINT(x) cout << (x) << endl
#define SZ(x) ((int)(x).size())

int main(int argc, char const *argv[])
{
	int a;
	long m = 100000;
	scanf("%d", &a);
	REP(i,a)
	{
		m = (float)m * 1.05;
		int a = m % 1000;
		if (a > 0)
			m += 1000 - a;
	}
	printf("%ld\n", m);
	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

template<typename T> inline T gcd(T a, T b) {
  return __gcd(a, b);
}

template<typename T> inline T lcm(T a, T b) {
  return a / gcd(a, b) * b;
}

template<typename T> inline T floor(T a, T b) {
  return a - a % b;
}

template<typename T> inline T ceil(T a, T b) {
  return floor(a + b - 1, b);
}

template<typename T> inline T round(T a, T b) {
  return floor(a + b / 2);
}

int main() {
  int n;
  cin >> n;
  int k = 100000;
  for (int i = 0; i < n; ++i) {
    k = ceil(k * 105 / 100, 1000);
  }
  cout << k << endl;
}

C++: // #define _CRT_SECURE_NO_WARNINGS
// #define _USE_MATH_DEFINES
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <locale>
#include <cctype>
#include <sstream>
using namespace std;

typedef long long LL;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef map<int, int> MAPII;
typedef multimap<int, char, greater<int> > MuMAPIC;
typedef vector<pair<int, int> > VPII;
typedef multimap<int, string, greater<int> > MuMIS;

#define MP make_pair
#define FAST_IO  cin.tie(0); ios::sync_with_stdio(false);
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
//for gcc (???test)
// #define FOREACH_IT(it,c) for(typeof(c)::iterator it=(c).begin(); it!=(c).end(); ++it)
//for Visual Studio
#define foreach_it(type,it,c) for(type::iterator it=c.begin(),c_end=c.end();it!=c_end;++it)
// for Debug.
#define DUMP_VVI(b) FOR(i,0,b.size()){FOR(j,0,b[i].size())printf("%d ",b[i][j]);puts("");}
#define D_OUT(str,value) if(dbgF){cout<<str<<" : "<<value<<endl;}
// ??\??????push_back(d)???array[d]???????????????1?????§?????????
// int INPUT_INT() {int d;cin>>d;return d;}
template<class T>T IN(){T d;cin>>d;return d;}
// ?????§??¬?´???°???Greatest Common Divisor???
LL gcd(LL a, LL b){ return (b > 0) ? gcd(b, a%b) : a; }
// ????°???¬?????°???Least Common Multiple???
LL lcm(LL a, LL b){ return a / gcd(a, b) * b; }

// ------------------- include, typedef, define END. -------------------

LL oh_no_plus(LL now){
	LL afterPlus=0;
	// 5% ???????????????????????????
	afterPlus = now + now*0.05;
	// ?????????????????? 1,000 ??????????????????????????????
	afterPlus = ceil(afterPlus/1000.0);
	return afterPlus * 1000;
}

int main(){
	FAST_IO;
	// for D_OUT(str, value)  ... cout<< str <<" : "<< value <<endl;
	bool dbgF = true;
	
	//??????????????????????????????.
	int n;
	while(cin>>n){
		LL ans = 100000;
		FOR(i,0,n){
			ans = oh_no_plus(ans);
		}
		cout << ans << endl;
	}
	
	return 0;
}

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

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

  cin >> n;

  for(int i=0;i<n;i++){
    ans *= 1.05;
    if((int)ans%1000){
      ans-=(ans%1000);
      ans+=1000;
    }
  }

  cout<<ans<<"\n";
}

C++: #include <iostream>
using namespace std;
int main(){
    int a=100000,b=0,t;
    cin>>t;
    
    if(t==0)cout<<a<<endl;
    else if(t<=100){
      for(int k=1;k<=t;k++){
         b=a*1.05;
         b=(b+900)/1000*1000;
         a=b;
       }
     cout<<b<<endl;
    }
}

C++: #include<iostream>
#include<iomanip>
#include<algorithm>
#include<cctype>
#include<cmath>
#include<string>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;

int main() {
	int a=100000,n;
	cin>>n;
	while(n-->0){
		a*=1.05;
		a=(a+999)/1000;
		a*=1000;
	}
	cout<<a;
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <utility>
#include <string>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <string.h>
#include <deque>
#define REP(i,j,n) for(int i=j;i<n;i++)
#define SORT(x) sort(x.begin(),x.end())

using namespace std;



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

C++: #include <iostream>
using namespace std;
int main(void){
    int n,ans=100000;
    cin>>n;
    for(int i=0;i<n;i++){
        ans+=ans*0.05;
        if(ans%1000==0){
            ans/=1000;
            ans*=1000;
        }
        else{
            ans/=1000;
            ans+=1;
            ans*=1000;
        }
    }
    cout<<ans<<endl;
    return 0;
}

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

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

C++: #include<stdio.h>
int main(void)
{
    int n,i,j,x;
	scanf("%d",&n);
    i=100000;
	for(j=0;j<n;j++){
	    i=i*5/100+i;
		x=i%1000;
		if(x!=0){
		    x=1000-x;
			i=i+x;
		}
	}
	printf("%d\n",i);
	return 0;
}

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

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

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

using namespace std;

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

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    long n = 0;
    cin >> n;
    
    long rest = 100000;
    for (int i = 0; i < n; i++) {
        rest *= 1.05;
    }
    
    if(rest % 1000 != 0){
        rest = rest + 1000 -  rest % 1000;
    }
    
    
    printf("%ld", rest);
    
    return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
int main(){
	long long int ans=100000;
	int n;
	cin>>n;
	for(int i=0;i<n;i++){
		ans=ans*105/100;
		if(ans%1000!=0){
			ans=ans/1000*1000+1000;
		}
	}
	cout<<ans<<endl;
    return 0;
}