Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	
	for scanner.Scan() {
		n, _ := strconv.Atoi(scanner.Text())
		debt := 100000 * math.Pow(1.05, float64(n))
		fmt.Println(math.Ceil(debt*0.0001)*10000)
	}
}

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

int main()
{
    int n, d = 100000;
    cin >> n;
    for(; n-- ;)
    {
       if((d + d*5/100)%1000 == 0) d = d + d*5/100;
       else
       {
            d = d + d*5/100 + (1000-(d + d*5/100)%1000);
       }
    }
    cout << d << endl;;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	int n , i , w , h ;
	double x , y , z;
	while( cin >> n ){
	x = 100000;
	for( i=1 ; i<=n ; i++ ){
		x = x*1.05;
		w = x ;
		x = w/100;
		x = x/10;
		x = ceil( x );
		x = x*1000 ;
	}
	y = x ;
	cout << y << endl;
}
}

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

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

C++: #include <iostream>
#include <string>
 
using namespace std;
 
int main(){
while(1){
string moji;
string mojihi;
string mojimi;
cin >> moji;
int l;
l=moji.size();
if(moji=="-") {
break;
}
int a,i;
cin >>a;
for(i=0; i<a; i++){
int b;
cin >>b;
mojihi = moji.substr(0,b);
mojimi = moji.substr(b,l-b);
moji= mojimi+mojihi;
}
cout<<moji<<endl;
}
    return 0;
}

C++: #include <cstdio>

int main(int argc, char const *argv[]){
//	freopen("in.txt", "r", stdin);

	int n;
	scanf("%d", &n);
	int ans = 100000;
	for(int i = 0; i < n; i ++){
		ans *= 1.05;
		if(ans % 1000 != 0){
			ans = ans - ans % 1000 + 1000;
		}
	}
	printf("%d\n", ans);

	return 0;
}

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

int main()
{
	int debt = 100000;
	int n;
	cin >> n;

	for(int i=0; i<n; ++i)
	{
		int x = debt * 1.05 + 999;
		debt = x - x%1000;
	}

	cout << debt << '\n';
}

C++: #include <stdio.h>
int main()
{
  int i,w;
  long long debt=100000;
  scanf("%d",&w);
  for(i=0;i<w;i++){
    debt*=1.05;
    if(debt%1000!=0)debt=debt+1000-debt%1000;
  }
  printf("%lld\n",debt);
  return 0;
}

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

int main() {
	int n;
	double a=100000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		a += a*0.05;
		if (a/1000 != int(a/1000)) {
			a = a/1000 + 1;
			a = int(a);
			a = a*1000;
		}
	}
	cout << a << endl;
	return 0;
}

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

int main(){
	int week,a,b,ans,aans;
	cin>>week;
	a=100000*0.05;
	b=week+1;
	a*=b;
	ans=100000+a;
	aans=ans/1000;
	aans=ans*1000;
	if(aans!=ans)ans+100;
	cout<<ans<<endl;
}

C++: #include<iostream>
#include<cmath>
int main(){
	double yami = 100.000;
	int n;
	std::cin >> n;
	for(int i = 0;i < n; ++i){
		yami *= 1.05;
		if(ceil(yami) != floor(yami)){
			yami = ceil(yami);
		}
	}yami *= 1000;
	std::cout << yami << '\n';
	return 0;
}

C++: #include<stdio.h>

int main(){
	double num=100000;
	int i,n,sum=0;
	
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		num=(double)num*1.05;
	}
	num=(double)num/10000;
	sum=num+0.9;
	sum=sum*10000;
	
	printf("%d\n",sum);
	return 0;
}

C++: /*****include*****/
#include <iostream>
#include <fstream>

/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/

/*****名前空間*****/
using namespace std;

/*****グローバル変数置き場*****/

/*****その他関数置き場*****/

/*****main関数*****/
int main(){
	/*****ファイルオープン*****/
#ifdef DEBUG
	ofstream fout("output.txt");
	ifstream fin("input.txt");
	if(!fout || !fin){
		cout << "Can't open the file.\n";
		return;
	}
#endif
	/*****変数置き場*****/
	int year;
	long int money = 100000;
	/*****処理部*****/
	cin >> year;
	for(int i=1;i<=year;i++){
		money += money*0.05;
	}
	if(money % 1000 > 0){
		money /= 10000;
		money++;
		money *= 10000;
	}
	cout << money << endl;
	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}

C++: #include <cmath>
#include <cstdlib>
#include <cstdio>

#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>

int main() {
  long n;
  long ans;

  std::cin >> n;

  ans = 100000;
  for(int i = 0; i < n; ++i) {
    ans = ans * 105 / 100;
    ans += 999;
    ans /= 1000;
    ans *= 1000;
  }

  std::cout << ans << std::endl;

  return 0;
}

C++: #include <iostream>

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

	double debt = 100000.0;
	for( int i=0; i<N; ++i ) {
		debt *= 1.05;
		debt = ( static_cast<int>( debt ) / 1000
			+ ((static_cast<int>( debt )%1000)>0?1:0)) * 1000;
	}

	std::cout << static_cast<int>( debt ) << std::endl;
}

C++: #include <cstdio>

#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++)

int main() {
  int debt = 100000;
  int n;
  scanf("%d", &n);
  REP(i, n) {
    debt += debt * 0.05;
    if(debt%1000 != 0) {
      debt -= debt%1000;
      debt += 1000;
    }
  }
  printf("%d\n", debt);
  return 0;
}

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

int main(void){
    int n;
    std::cin>>n;
    std::cout<<round(100000*pow(1.05,n)+1000)<<std::endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	bool bo=false;
	int n,a=100000;
	while(cin>>n){
	for(int i=0;i<n;i++){
		a+=100000*0.05;
	}
	if(a%10000==0 && a%1000==0 && a%100==0 && a%10==0){
		bo=true;
	}
	a/=10000;
	if(bo==false){
		a=a+1;
	}
	cout<<a*10000<<endl;
	}
	return 0;
}

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

int main(){
int n;
scanf("%d",&n);
double base = 100000;
for(int i=0;i<n;i++){
base*=1.05;
if((int)base < 1000 && (int)base %1000 !=0) base += 1000;

}
printf("%d\n",(int)base);
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <algorithm>
#include <string>
#include <set>
#include <map>
#include <queue>
#include <cstring>
using namespace std;
typedef long long int ll;
const int INF = 1000000000;
#define rep(i,n) for(int i=0;i<(int)(n);i++)

int main(){
    int n; cin >> n;
    int a = 100000;
    rep(i, n){
        int b = a / 20;
        a += b;
        //cout << a << " ";
        int k = a % 1000;
        if(k){
            a -= k;
            a += 1000;
        }
        //cout << a << endl;
    }
    cout << a << endl;
    return 0;
}

C++: #include<iostream>

using namespace std;

int main(void){
	long money = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		money *= 1.05;
		if(money / 100 % 10) money = money/1000*1000 + 1000;
	}
	cout << money << endl;
	
	return 0;
}

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

int main()
{
    int n = 0;                                          //n習慣
    int debt = 100000;                                  //10万借金

    cin >> n;                                           //入力

    for( int i = 0; i < n; i++ )                        //n回繰り返す
    {
        debt = debt * 105 / 100;                             //5%増える
        if( debt % 1000 != 0 )                     //1~999は切り上がる
            debt = ( debt / 1000 + 1 ) * 1000;
    }

    cout << debt << endl;

    return 0;
}

C++: #include <iostream>

using namespace std;

void solve()
{
	int n;
	cin >> n;
	int sum = 100000;
	for(int i = 0; i < n; ++i)
	{
		sum *= 1.05;
		int temp = sum % 1000;
		if(temp)
		{
			sum = sum - temp + 1000;
		}
	}
	cout << sum << endl;
}

int main()
{
	solve();
	return(0);
}

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

const static double	de_PI	= 3.14159265358979323846;
const static int	de_MOD	= 1000000007;
const static int	de_MAX	= 999999999;
const static int	de_MIN = -999999999;

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());

	int a = 0;
	std::cin >> a;

	double n = 100000;
	for (int i = 0; i < a; i++) {
		n = n*1.05;
		n = static_cast<int>(ceil(n / 1000));
		n = n * 1000;
	}

	std::cout << n << std::endl;
}