Go: package main

import (
	"bufio"
	"fmt"
	"math"
	"os"
	"strconv"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() int {
	n, err := strconv.Atoi(nextString())
	if err != nil {
		fmt.Printf("strconv.Atoi failed: %v\n", err)
	}
	return n
}

func main() {
	scanner.Split(bufio.ScanWords)

	n := nextInt()
	debt := 100.0 // 100千円
	for i := 1; i <= n; i++ {
		debt = math.Ceil(1.05 * debt)
	}
	fmt.Println(int(math.Ceil(debt)) * 1000)
}

C++: #include<stdio.h>

int main()
{
	int n;
	scanf("%d", &n);
	int i;
	long long int total = 100000;
	for (i = 0; i < n; i++)
	{
		total = total*1.05;
		total = total / 100.0;
		if (total % 10 != 0)total = total + (10 - (total % 10));
		total = total * 100;
	}
	printf("%d\n", total);
	return 0;
}

C++: #include <iostream>
using namespace std;
int b=100000;
int a;

int main(){
	cin>>a;
	for(int i=0;i<a;i++){
		b*=1.05;
		int d=b/1000;
    if(d*1000<b){
		b=d*1000+1000;
		}    

	}

	cout<<b<<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 /= 100) *= 105;
        if(debt % 1000 > 0){
            ++ debt;
            debt *= 1000;
        }
    }

    cout << debt << endl;

    return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>


#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



int dy[] = { 0, 0, 1, -1, 0 };
int dx[] = { 1, -1, 0, 0, 0 };

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = { -2 };

void input(void) {
	CI n;
	return;
}


int main(void) {
	input();
	double money = 100000;
	
	for (int i = 0; i < n; i++) {
		money *= 1.05;
		if ((int)money % 1000 > 0) {
			money = money - ((int)(money) % 1000) + 1000 - (money - (double)(int)money);
		}
		
	}
	
	CO money E
	

	return 0;
}

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

C++: #include <iostream>

using namespace std;

int main()
{
    unsigned long long debt = 100000;
    int n;
    
    for (int i = 0; i < n; ++i) {
        debt *= 1.05;
        debt -= (debt % 10000) - 10000;
    }
    cout << debt << endl;
    
    return 0;
}

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

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

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

using namespace std;

int main() {
   double v = 100000;
   double r;
   int n;

   cin >> n;

   for(int i = 0; i < n; i++) {       
       v += v * 0.05;
       r = fmod(v, 1000.0);          
        if(r != 0) {
            v += (1000 - r);
        }
   }
n = v;

   cout << n << endl;

    return 0;

}

C++: #include <stdio.h>
#include <string>
#include <string.h>
#include <cstring>
#include <algorithm>

const float a=1.05;

using namespace std;



int main(void)
{
	int debt,week;
	scanf("%d",&week);
	debt=100000;
	for(int loop=1;loop<=week;loop++)
	{
		debt*=1.05;
		if(debt%1000!=0)
		{
			debt=debt-(debt%1000)+1000;
		}
	}
	printf("%d\n",debt);
	return 0; 
}

C++: #include "stdafx.h"
#include <iostream>
using namespace std;

int main(){

	int i,n=100000,m;

	cin >> i;
	while(i--){
		n+=n*0.05;
		m=n%1000;
		if(m){
			n+=1000-m;
		}
	}
	cout << n << endl;

	return 0;
}

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

int main(){
	double n,i,tmp;
	double ans=100000;
	cin>>n;
	while(n--){
		ans *= 1.05;
		ans = ceil(ans/1000.0)*1000.0;

	}
	cout<<ans<<endl;
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
#define mp make_pair
#define fi first
#define se second
#define ll long long
#define pb push_back

# define inOut(a,b) freopen(a,"r",stdin);freopen(b,"w",stdout);
# define RESET(a) memset(a,0,sizeof(a))
# define MEMO(a) memset(a,-1,sizeof(a))
# define DEBUG puts("Debug-Has-Come-Until-Here")


typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;

int main(){
	cin.tie(NULL);
	
	ll money = 100000;
	int n, i, j;
	scanf("%d", &n);
	for (i=1; i<=n; i++){
		money = money + (money/100 * 5);
		if (money %1000 > 0){
			money += 1000;
			money -= money % 1000;
		}
	}
	printf("%lld\n",money);

	return 0;
}

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

int main(){

	int n;
	
	while(cin>>n){

		int sum = 100000;


		for(int i=0;i<n;i++){

			sum *= 105/100.0;

			if((int)sum%1000>=1){
				sum /= 1000;
				sum *= 1000;
				sum += 1000;
			}
		}
		printf("%d\n",(int)sum);
	}
	return 0;
}

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

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

}

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

int main(){
    int week = 0;
    cin >> week;
    int a = 100000;
    for(int i = week;i--;){
        a *= 1.05;
    }
    cout << a << endl;
    a = (int)(a * 0.0001 + 0.9) * 10000;
    cout << a << endl;
    return 0;
}

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

int main(){
int n,M,m;
M=100;
cin>>n;
for(int i=0;i<n;i++){
m=(M+19)/20;
M+=m;
}
cout<<M*1000;
}

C++: #include<cstdio>
int main(){
    int n;
    int sum=100000;
    scanf("%d",&n);
    for(int i=0;i<n;i++){
        sum+=sum*0.05;
        if(sum%1000) sum=(sum/1000+1)*1000;
    }
    printf("%d\n",sum);
}

C++: #include<stdio.h>

int main(){
  float money = 100.0f;
  const float RATE = 0.05f;
  int week;

  scanf("%d",&week);
  for(int i = 0;i < week;i++){
    money += money*RATE;
    if(money*1000.0f - (int)money*1000 > 0){
      money = (int)money + 1.0f;
    }
  }

  printf("%d\n",(int)money*1000);
  
return 0;
}

C++: #include <stdio.h>
int main(){
 int n,i;
 double debt=10000;
 scanf("%d",&n);
 while(n--){
     debt += debt*0.05;
     for(i=10;i<1000;i*=10){
         if(n%i!=0){
             debt += 1000;
             break;
         }
     }
 }
 printf("%lf\n",debt);
 return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <deque>
#include <list>
#include <string>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>

using namespace std;

int n;

int main() {
	cin >> n;

	int money = 100000;
	for (int i = 0; i < n; i++) {
		money *= 1.05;

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

	cout << money << endl;

	return 0;
}

/*@@@@@@@@@@@@@@@@@@@@@@@@@*/
/*@                       @*/
/*@ debug output erased ? @*/
/*@                       @*/
/*@@@@@@@@@@@@@@@@@@@@@@@@@*/

C++: #include<iostream>
using namespace std;int main(){int n,m=1e5;for(cin>>n;n>0;n--)m=(m*105/100+999)/1000*1000;cout<<m<<endl;return 0;}

C++: #include<iostream>
#include<stdio.h>
#include<algorithm>
#include<math.h>
#include<string.h>
using namespace std;
int main()
{
	int n,s=100000,a,b;
	cin>>n;
	for(int i=0;i<n;i++)
	{
		s*=1.05;
		if(s%1000>=1)
		{
			a=1000-s%1000;
			s+=a;
		}
	}
	cout<<s;
	return 0;
}