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))
		rounddebt := int(math.Ceil(debt*0.0001)) * 10000
		fmt.Println(rounddebt)
	}
}

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

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

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

int main() {
    ios::sync_with_stdio(false);
    int x=100000, n;
    cin >> n;
    for(int i=0;i<n;i++){
      x *= 1.05;
      if(x%1000 == 0) ;
      else x = (x/1000)*1000 + 1000;
    }
    cout << x << endl;
    return 0;
}

C++: #include <iostream>
#include <stdio.h>
int main(){

	int n,i,kane=100000,a,b;

	std::cin>>n;

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

		return 0;
		}

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
	string str = "";

	while (getline(cin, str)){
		int n = 0;
		stringstream ss(str);
		ss >> n;
		int roan = 100000;
	
		for (int i = 0; i < n; ++i){
			roan = (int)(roan*1.05);
		} // end for
		roan += 5000;
		roan = (roan/10000)*10000;
		cout << roan << endl;	
	} // end while

	return 0;
}

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

int main(){

	int n, i;
	double debt = 100000;
	cin >> n;

	for( i=0;i<n;i++ ){
		debt = debt * 1.05;

		debt /= 1000;
		debt = ceil( debt );
		debt *= 1000;

	}

	cout << debt << endl;
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main() {
  int n;
  cin >> n;
  double x = 1e2;
  for (int i = 0; i < (int)n; ++i) x = ceil(x * 1.05);
  cout << ll(x * 1000) << endl;

  return 0;
}

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

using namespace std;
int main() {
  int n;
  double money = 100000;
  cin >> n;
  for (int i = 0; i < n; i++) {
    money += money * 0.05;
  }
  cout << 10000 * ceil(money / 10000) << endl;
  return 0;
}

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

int main() {
	long long int N; cin >> N;
	long long int num = 100;
	while (N--) {
		num =num* 1.0499999999+1;
	}
	cout << num * 1000 << endl;
	return 0;
}

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

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

	while(n--){
		debt = (debt*105)/100;
		if((debt%1000)>0){
			debt += (1000 - debt%1000);
		}
	}

	cout << debt << endl;

    return 0;
}

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

int main()
{
	int n=0;
	cin>>n;
	long long c = 100000;
	for ( int i=0; i<n; i++ )
	{
		c += c/20;
		c = (c+999)/1000*1000;
	}
	cout << c << endl;
	return 0;
}

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

C++: a=100000;gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;};puts a

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

int Kiriage(double a)
{
	a /= 1000;

	int aI = a;

	if(a>aI)
	{
		aI += 1;
	}
	return aI*1000;
}

int main()
{
	int debt =100000;//ここ変更OK 最初の借入額

	int n;

	std::cin >> n;

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

		debt = Kiriage(debt);
	}

	std::cout << debt << '\n';

}

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>=100){
				sum /= 1000;
				sum *= 1000;
				sum += 1000;
			}
		}
		printf("%d\n",(int)sum);
	}
	return 0;
}

C++: #include<iostream>

int week(int money){
	money = money + money * 0.05;
	money = money + 1000 - ( money % 1000 );
	return money;
}

int main(void){
	int n;
	int money = 100000;
	cin >> n;
	for(int i = 0;i < n;i++){
		money = week(money);
	}
	
	return 0;
}

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

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

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

int main(){
  int n,i,a=100000;

  cin>> n;
  for(i=0;i<n;i++){
    a=a+(a*0.05);
    if(a%1000 != 0){
      a=a-(a%1000)+1000;
    }
  }
  cout << a << endl;



}

C++: #include <iostream>

using namespace std;

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

	return 0;
}

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

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

C++: #include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
int main () {
	int d = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		d *= 1.05f;
		int a = d % 1000;
		if(a != 0){
			d += 1000;
			d -= a;
		}
	}
	cout << d << endl;
}

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

using namespace std;

int roundUp(int x, int index);

int main(void)
{
    int i;
    int n;
    double intrst;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    intrst = 0.05;
    for (i = 0; i < n; i++) {
        debt *= 1.0 + intrst;
    }
    debt = roundUp(debt, 4);
    cout << debt << endl;
    
    return 0;
}

int roundUp(int x, int index)
{
    int exp10;
    
    exp10 = pow(10, index - 1);
    x += exp10 - exp10 / 10;
    x /= exp10;
    x *= exp10;
    
    return x;
}

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;
        if(debt%1000 != 0) {
            debt /= 1000;
            debt *= 1000;
            debt += 1000;
        }
    }
    cout << debt << endl;
    return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int n
	float p
	scanf("%d",&n);
	p=1.05;
	for(i=0;i<n;i++){
		w=100000*p;
		if(1000%w>0){
			w=w-(1000%w)+1000;
		}

C++: #include<iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
using namespace std;
#include <sstream>
typedef long double ld;
int a;
int main(){
cin>>a;
 double c=100000.0;
for (int i = 0; i < a; ++i) {
	c=c*1.05;
	c=ceil(c*0.001);
	c=c*1000;
}
cout<<c;
}