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+=tmp*0.05
	}
	return Round(tmp, -4)
}

func Round(f float64, places int) float64{
	shift := math.Pow(10, float64(places))
	return math.Floor(f * shift+.5)/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,sum = 100000;
  cin >>n;
  while(n--){
    sum = (int)(sum*1.05);
    if(sum%1000){sum = (sum/1000)*1000+1000;}
  }
  cout <<sum<<endl;
  return 0;
}

C++: #include <cstdio>

using namespace std;

int main() {
   int n = 0;
   double N = 0;
   int M = 0;
   int L = 100;
   int c = 0;
  scanf("%d", &n);
  for (int i = 0;i < n; i++) {
   N = L;
   M = L;
   c = 0;
   N *= 1.05;
   N -= M;
  while (N > 1) {
   N -= 1;
   c += 1;
  }
  if ( N > 0) {
   L += 1;
   }
   L += c;

  }

 L *= 1000;
 printf("%d\n", L);
  return 0;
}

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

#define add push_back
#define inf 2147000000

#define rep(i,n) for(int i=0;i<n;i++)
#define deb(a) cout<<a<<endl
#define out(a) cout<<a<<endl;

using namespace std;

int main(void){
	int n;
	scanf("%d",&n);
	
	int gaku=100000;
	
	rep(q,n){
		gaku*=1.05;
		
		if(gaku%1000 > 0){
			gaku-=gaku%1000;
			gaku+=1000;
		}
	}
	out(gaku);
}

C++: #include<iostream>
using namespace std;
#define RENT 100000
int main(){
	int n;
	while(cin>>n){
		int ans;
		ans=RENT;
		for(int i=0;i<n;i++){
			ans=ans*1.05;
			if(ans%1000>0){
				ans=ans+1000-ans%1000;
			}
		}
		
		
		cout<<ans<<endl;
	}
}

C++: #include <iostream>

using namespace std;

int main(){
  int n;
  while(cin >> n){
    int m = 100000;
    while(n--){
      m = m*1.05;
      m = (int)(m / 1000 + ((m % 1000)?1:0)) * 1000 ;
    }
    cout << m << endl;
  }
  return 0;
}

C++: #include <iostream>
#include <cmath>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <sstream>
#include <string>
#include <cstdlib>
using namespace std;

// 一行取って、一番初めのTを習得
template <class T> int streamvar(std::istream& in, T& var)
{
    string s;
    if (!in) {
        return 1;
    }
    getline(in, s);
    istringstream is(s);
    is >> var;
    if (is.fail()) 
        return 1;
    return 0;
}
// 一行取って、T vectorに格納する
template <class T> int streamvec(std::istream& in, std::vector<T> &v)
{
    v.clear();
    string s;

    if (!in) 
        return 1;
    getline(in, s);
    if (in.fail()) 
        return 1;
    istringstream is(s);
    while (1) {
        T tmp;
        is >> tmp;
        if (is.fail())
            break;
        v.push_back(tmp);
    }
    return 0;
}

#define EPS 1e-6
int main(void)
{
    int n;
    while (cin >> n) {
        long long m = 100000;
        for (int i = 0; i < n; i++) {
            m = (double)m * 1.05;
            if (m % 1000) {
                m -= m % 1000;
                m += 1000;
            }
        }
        cout << m << endl;
    }
    return 0;
}

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

int main() {
	//1週間ごとに5%の利子を借金に加え、さらに借金の 1,000 円未満を切り上げます。
	int n;
	cin >> n;
	int money = 100000;
	for	(int i = 0; i < n; i++){
		money *= 1.05;
		if (money % 1000 > 0)	money = (money / 1000 + 1)*1000;
	}
	cout << money << endl;
	return 0;
}

C++: import sys
import math as m
n=int(input())
out=100000
for i in range(n):
	out=m.ceil(out*1.05/1000)*1000
print(out)

#for i in sys.stdin:
#	a,b=map(int,i.split())
#	print(gcd(a,b),lcm(a,b))

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int s = 100000;
	int n;
	cin >> n;
	while (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 <iostream>
using namespace std;

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

	return 0;
}

C++: #include <iostream>

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

  std::cin >> n;

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

  std::cout << money << std::endl;

}

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

typedef long long ll;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, n) for(int i = 0; i < (n); i++)
#define dep(i, a, n) for(int i = a; i >= (n); i--)
#define FOR(i, a, n) for(int i = a; i < (n); i++)
#define mod (ll)(1e9+7)
#define int ll
#define INF 100000000

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
	ll n, sum = 100;
  cin >> n;
  rep(i, n) {
    sum = ceil(sum * 1.05);
  }
  cout << sum * 1000 << endl;
	return 0;
}

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;
}