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

int main(){
	double money = 100000;
	int n;
	cin >> n;
	for( int i=0; i<n; i++ ){
		money = (double)money * 1.05;
		int up = money / 1000;
		if( (int)(money - up) > 0 ){
			money = (up+1)*1000;
		}else{
			money = up * 1000;
		}
	}
	int m = (int)money;
	cout << m << endl;
	return 0;
}

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

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

    return 0;
}

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

int main(){
	int n, t = 100000;
	cin >> n;
	for( int i = 0; i < n; ++i){
		t = 1.05 * t;
		t = (t/1000)*1000 + ((t % 1000 != 0) ? 1000 : 0);
	}
	cout << t << "\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 = debt * 1.05;
		if (debt % 1000 > 0) {
			debt = debt - (debt % 1000) + 1000;
		}
	}
	cout << debt << endl;
	return 0;
}

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

int main(){
    int debt = 100000;
    int week;
    
    cin >> week;
    
    for(int i = 0; i < week; ++i){
        debt = debt * 1.05;
    }

    if(debt % 10000 != 0){
        debt = (debt + 9999) / 10000;
        debt = debt * 10000;
        cout << debt << endl;
    }else{
        cout << debt << endl;
    }

    return 0;
}

C++: #include <iostream>

#define N (1000)

int debt(const int amount, const int weeks)
{
    int ret;
    int fraction; /* 1000円未満額の端数 */
    
    ret = amount;
    for (int i = 0; i < weeks; i++){
        // 利子計算
        ret *= 1.05;
    }
    
    fraction = ret % N;
    
    ret /= N;  // 切り捨てて
    if (fraction != 0){
        // 端数があるなら
        // 切り上げる
        ret++;
    }
    ret *= N;
    
    return ret;
}

int main()
{
    int n;
    
    std::cin >> n;
    
    std::cout << debt(100000, n) << std::endl;
    
    return 0;
}

C++: #include<iostream>
#include<stdio.h>
int main(){
	
	int n,i,a,b,okane=100000;

    std::cin>>n;
	for(i=0;i<n;i++){	
		okane=okane*1.05;
		if(okane%1000!=0){
			a=okane%1000;
			b=1000-a;
			okane=okane+b;
			}

		}
    std::cout<<okane<<std::endl;

	return 0;
}

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

int n;//n週間
double sum;//n週間後の借金

int main(){
  sum = 100000;
  scanf("%d",&n);
  for(int i= 0;i < n;i++){
    sum += 0.05*sum;
    sum = ceil(sum/1000)*1000;
}
  
  int ans =(int)sum;
  printf("%d\n",ans);
  return 0;
}

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