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 <iostream>
using namespace std;

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

C++: #include <iostream>
#include "math.h"
using namespace std;
int Debt = 100000;

void RoundUp(int& Integer, int Power)
{
	int Place = pow(10, Power);
	if(Integer % Place != 0){
		Integer = Place * (Integer / Place + 1);
	}
}

int main()
{
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		Debt *= 1.05;
		RoundUp(Debt, 3);
	}
	cout << Debt << endl;
	return 0;
}

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

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

#define REP(i,n) for(int i=0; i<n; ++i)
#define IREP(it,array) for(vector<int>::iterator it=array.begin(); it!=array.end(); ++it)
#define SREP(it,array) for(vector<string>::iterator it=array.begin(); it!=array.end(); ++it)
#define MP make_pair
typedef long long LL;


int main()
{
  cout.setf(ios::fixed, ios::floatfield);
  cout.precision(6);

  int INF = 1000000;

  LL debt = 100000L;
  int n;
  while(cin>>n){
    REP(i,n){
      double d = debt*1.05/1000;
      debt = (LL)(ceil(d) * 1000);
    }

    cout << debt  << endl;
  }


  return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <math.h>
using namespace std;

int main() {
	
	int m=100,n;
	cin>>n;
	
	for(int i=0;i<n;i++)m=ceil(m*1.05);
	
	cout<<m<<"000";
	return 0;
}

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

C++: #include <iostream>
using namespace std;
int main(){
int n,money = 100000;
cin >> n;
for(int i=0;i<n;i++)
money*=1.05;
money=money/10000+1;
money*=10000;
if(!n)money=100000;
cout << money << endl;
return 0;
}

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

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

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; i++)
using namespace std;
int main(){
  int n;
  cin >> n;
  int a = 100000;
  rep(i,n){
    a *= 1.05;
    if(a % 1000 != 0){
      a -= a%1000;
      a += 1000;
    }
    //cout << a << endl;
  }
  cout << a << endl;
  return 0;
}

C++: #include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <string>
using namespace std;

long int money = 100000;

int main(){
	int n;
	int tmp;
	cin>>n;
	//while(n!=0){
		money = 100000;
	for(int i=0;i<n;i++){
		money*=1.05;
		//if(i==n-1) cout << "\nbefore  \n" << money <<"\nafter"<<endl;
		tmp = (money/100)%10;
		if(tmp!=0){
			money/=1000;
			money++;
			money*=1000;
			
		}
		//if(i==n-1)	cout << money << endl;
	}
	
	cout << money << endl;
		//cin >> n;
	//}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a,b,c;
	int i,n;
	cin>>n;
	a=100000;
	for(i=0;i<n;i++){
		b=a/20+a;
		if(b%1000!=0)b+=1000;
		b/=1000;
		b*=1000;
		a=b;
	}
	cout<<a<<endl;
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <array>
#include <queue>
#include <deque>
#include <set>
#include <list>
#include <map>
#include <stack>
#include <utility>
#include <algorithm>
#include <numeric>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cctype>
#include <cstring>
#include <climits>
#include <bitset>
#include <random>
#include <functional>
#include <sstream>
#include <iomanip>

using namespace std;

#define _CRT_SECURE_NO_WARNINGS
#define rep(i, n) for(int i=0; i<(n); i++)
#define FOR(i, m, n) for(int i=(m);i<(n);i++)
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
#define SORT(x) sort((x).begin(),(x).end())
#define REVE(x) reverse((x).begin(),(x).end())
#define mp make_pair
#define pb push_back

typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<vector<int>> VVI;
typedef pair<int, int> PII;
typedef long long LL;

int main() {
	int n;
	cin >> n;
	int a = 100000;
	rep(i, n) {
		a = a / 100 * 105;
		a = (a + 1000 - 1) / 1000 * 1000;
	}
	cout << a << endl;
}

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

int main(void){

  int debt,week,i;
  debt = 100000;

  cin >> week;

  for(i=0; i<week; i++){
    debt = debt * 1.05;
    if(debt % 1000 > 0){
      debt += 1000 - (debt % 1000);
    }
  }

  cout << debt << endl;
  return 0;

}

C++: #include <iostream>

int next_weeks_debt(int current) {
  current *= 1.05;
  int mod = current % 1000;
  if (mod != 0) { current += 1000 - mod; }
  return current;
}

int main() {
  int weeks;
  std::cin >> weeks;

  int current = 100000;
  for (int i = 0; i < weeks; ++i) {
    current = next_weeks_debt(current);
  }

  std::cout << current << std::endl;

  return 0;
}

C++: #include <cstdio>
#include <iostream>
#include <iomanip>
#include <string> 
#include <vector> 
using namespace std;

int main(){
	int n,i,ans = 100000,a,risi[2];
	cin >> n;
	for(i = 1;n >= i;i++){
		risi[0] =  ans * 0.05;
		risi[1] = risi[0];
		while(risi[1] >= 1000){risi[1] = risi[1] - 1000;}
			if(risi[1] > 0){risi[0] = risi[0] - risi[1] + 1000;}
		ans = ans + risi[0];
	}
	cout << ans << endl;
}

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

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

	scanf("%d", &n);
	for(i=0; i<n; i++){
		money = money + ceil(money * 0.05);
		if(money % 1000 != 0){
			money = money - (money % 1000) + 1000;
		}
	}

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

	return 0;
}

C++: #include <stdio.h>
#include <string>
#include <iostream>
#include <algorithm>
using namespace std;

int main() {
    int weeks;
    scanf("%d", &weeks);

    int debt = 100000;
    for (int i = 0; i < weeks; i++) {
        debt = debt * 1.05;
        int p = debt / 100;
        int q = p / 10;
        if (p % 10 > 0) {
            q += 1;
        }
        debt = q * 1000;
    }
    printf("%d\n", debt);
}

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


long long countdebt(long long bj, int n) {
	if (n == 0)
		return bj;
	else
		countdebt(bj + (((bj / 20) % 1000 == 0) ? (bj / 20) : (((bj / 20) / 1000ll + 1ll) * 1000ll)),n-1);
}

int main() {
	int n = 0;
	cin >> n;
	cout << countdebt(100000, n) << endl;
	return 0;
}

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

int main()
{
	int n, a = 100000;
	cin >> n;
	for (int i = 1; i <= n; i++)
	{
		int b = a * 5 / 100;
		a += b;
		if (a % 1000)a = (a / 1000 + 1) * 1000;
	}
	cout << a << endl;
	return 0;
}

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

int main(){
	int n;
	long debt=100, tmp; // x1000 yen

	scanf("%d", &n);

	for(; n>0; n--)
		debt=(int)ceil(debt*1.05);
	
	printf("%d000\n", debt);

 return 0;
}