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>
#include<string>
#include<vector>
#include<algorithm>
#include <functional>
#include <iomanip>
using namespace std;

#define ll long long int

#define rep(p,q) for(int i = p; i < q;i++)


int main(void) {
	int week;
	cin >> week;
	int debt = 100000;
	rep(0, week) {
		debt = debt*1.05;
		if ((int)debt % 1000 != 0) {
			debt += 1000 - debt % 1000;
		}
		
	}
	cout << debt << endl;
}

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

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

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

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

    cin >> n;                                           //入力

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

    cout << debt << endl;

    return 0;
}

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



int main(void){
	

	double n, sum = 100000;
	cin >> n;

	for (int i = 0; i < n; i++){
	
		sum = sum*1.05;
		sum /= 1000;
		sum=ceil(sum);
		sum *= 1000;

	}
	sum *= 1000;
	cout << int(sum) << endl;


	
	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int n; cin >> n;

	int money = 100000;

	for (int i = 0; i < n; ++i) {
		int next = money * 105 / 100;
		if (next % 1000) next += 1000;
		money = next / 1000 * 1000;
	}

	cout << money << endl;
}

C++: #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
 int n, i, sum = 100000, count;
 cin >> n;
 for(i = 0;i < n;i++){
  sum = sum * 1.05;
 }
 if(sum % 10000 != 0){
  sum = sum / 10000;
  sum = sum + 1;
  sum = sum * 10000;
 }
 cout << sum << endl;

 return 0; 
}

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

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

C++: #include <iostream>

using namespace std;

int main() {

	double money = 100000;
	int n;

	cin >> n;

	for (int i = 1; i <= n; i++) {
		//???????????????
		money *= 1.05;
		//1000??????????????°?????????
		double miman = money - ((int)(money*0.001)) * 1000.0;
		if (miman > 0) {
			money = money - miman + 1000.0;
		}
	}

	cout << (int)money << endl;

	return 0;

}

C++: #include<iostream>

using namespace std;

int main()
{
	int week,money = 100000;
	cin >> week;

	for(int ix = 0;ix != week;++ix){
		money *= 1.05;
		money += money%1000!=0 ? 1000: 0;
		money -= money%1000;
	}
	cout <<money<<endl;

	return 0;	
}

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

int main() {
	int loan = 100000;
	int hoge = loan * 0.05;
	int n;
	std::cin >> n;

	for (int i = 0; i < n; i++)
		loan += hoge;

	if (loan % 10000 < 5000)
		loan = loan / 10000 * 10000;
	else
		loan = loan / 10000 * 10000 + 10000;
	
	std::cout << loan << std::endl;
}

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

C++: #include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <string>

using namespace std;

int main(){
	int n;
	cin>>n;
	long long ans = 100000;
	for (int i = 0; i < n; i++)
	{
		ans += ans / 20;
		if(ans % 1000 != 0)
			ans = ans - ans % 1000 + 1000;
	}

	cout << ans << endl;

	return 0;
}

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

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

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

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
	}
	string a_str = to_string(money);
	vector<char> strs;

	for (int i = a_str.size()-1; i >= 0; i--) {
		strs.push_back(a_str[i]);
	}
	rep(i,4) {
		strs[i] = '0';
	}
	strs[4] = strs[4] + 1;
	/*
	rep(i,strs.size()) {
		//cout << strs[i];
	}
	*/

	vector<char> strs2;
	for (int i = strs.size()-1; i >= 0; i--) {
		cout << strs[i];
	}
	cout << endl;

	return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
  int n=0;
  int m=100000;
  cin>>n;
  for(int i=0;i<n;i++){
	  m=m*1.05;
	  if(m%1000!=0){
		  m=m+1000;
	  }
  }
  cout<<m<<endl;

  return 0;
}

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

int main() {
	ios :: sync_with_stdio(false);
	int n; cin >> n;
	int t = 100000;
	while(n --) {
		t = t + t / 20;
		int r = t % 1000;
		t = t - r + (r > 0 ? 1000 : 0);
	}
	cout << t << '\n';
	return 0;
}

C++: #include<cstdio>
int main(){
	long int debt = 100000;
	int n;
	scanf("%d",&n);
	for(int i=1;i<=n;i++){
		debt *= 1.05;
		int mod = debt % 1000;
		if(mod != 0){
			debt += (1000-mod);
		}
		//printf("%ld\n",debt);
	}
	printf("%d\n",debt);
	return 0;
}

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

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

    cin>>n; 

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

    return 0;
}

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

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

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

int main(){ 
    int n;  
    unsigned long long int cath=100000;
    double risi;

    cin>>n; 

    for(int i=1;i<=n;i++){
        risi=cath*0.05;
        risi=ceil(risi*0.001);
        risi*=1000;
        cath+=risi;
    }
    cout<<cath<<endl;

    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <utility>
    
#define ll (long long)
#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)
#define risi (0.05)

using namespace std;


int main(void)
{
    unsigned int week;
    int i;
    double money = 100;
    
    
    cin >> week;
    for(i = 1; i<= week; i++)
    {
        money += money*risi;
        money  = (int)(money+(0.99999999));
    }
    
    cout << money*1000 << endl;
}