Go: package main

import (
        "fmt"
        "math"
)

var interests [101]float64

func main() {
        var m int
        fmt.Scanf("%d", &m)
        fmt.Printf("%d\n", int(math.Ceil(interest(m)*100))*1000)
}

func interest(m int) (i float64){
        if interests[m] > 0 {
                return interests[m]
        }

        if m == 0 {
                interests[0] = 1.0
                return interests[0]
        }

        if m == 1 {
                interests[1] = 1.05
                return interests[1]
        }
        interests[m] = interest(m/2) * interest(m/2) * interest(m%2)
        return interests[m]
}

C++: #pragma GCC optimize("Ofast,unroll-loops")
#include<bits/stdc++.h>

using namespace std;
using Int = long long;
typedef pair<int,int> Pi; typedef pair<Int,Int> Pl;
constexpr int mod = 1e9+7;
constexpr int INF32 = numeric_limits<int>::max();
constexpr Int INF64 = numeric_limits<Int>::max();
#define END {cout<<ans<<'\n'; return 0;}
#define ALL(v) (v).begin(),(v).end()
#define fi first
#define se second
#define mp make_pair
#define eb emplace_back
#define Pr(t) priority_queue<t>
#define gPr(t) priority_queue<t,vector<t>,greater<t>>
#define V(t) vector<t>
#define rer(i,l,r) for(int(i)=(l); (i)<(r); ++(i))
#define rep(i,n) rer(i,0,n)
#define gnr(i,l,r) for(int (i)=(r)-1; (i)>=(l); --(i))
#define pri(a) cout<<(a)<<'\n'
#define pri2(a,n) {rep(i,n-1)cout<<a[i]<<' '; if(n)cout<<a[n-1]<<'\n';}
#define prip(p) cout<<(p).fi<<' '<<(p).se<<'\n'
template<class T> inline bool cmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool cmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int n,m,_,x,y,q;
string s,sb;
bool ok;
char cf,cb;

int main(){
  cin.tie(nullptr); ios::sync_with_stdio(0);
  //cout<<fixed<<setprecision(20);
  
  cin>>n; x=100000;
  rep(i,n){
    x+=x/20;
    x=x-((x%1000)?(x%1000):1000)+1000;
  }
  pri(x);
}

C++: #include <stdio.h>

int main() {
    int weeks = 0;
    double money = 100.0d;
    scanf("%d", &weeks);

    for (int i = 0; i < weeks; ++i) {
        money *= 1.05d;
        int temp = (int) money;
        if (temp < money) {
            temp++;
        }
        money = temp;
    }

    int result = (int) money;
    result *= 1000;
    printf("%d\n", result);

    return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main(){
	int now_money = 100000;
	int N;
	cin >> N;
	for(int i = 0; i < N; i++){
		now_money += now_money * 5 / 100;
		if(now_money % 1000 != 0){
			now_money -= now_money % 1000;
			now_money += 1000;
		}
	}
	cout << now_money << endl;
	return 0;
}

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

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

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

// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007&lang=jp

int main() {
	int n;
	cin >> n;
	int ans = 100000;
	for (int i = 0; i < n; i++) {
		ans += ans * 0.05;
	}
	int trunc = (ans / 10000) * 10000;
	cout << (trunc == ans ? ans : trunc + 10000) << endl;
	return 0;
}

C++: #include<iostream>

using namespace std;

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

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

	return 0;
}

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

int main(){
	int shakkinn=100000;
	int n;
	int i;

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		shakkinn *= 1.05;
		while (shakkinn % 1000 != 0) {
			shakkinn++;

	}
}
	printf("%d", shakkinn);
}

C++: #include <stdio.h>

int main(void)
{
	int a = 100000;
	int b = 0;
	int c = 0;
	int i = 0;
	int n = 0;
	
	scanf("%d",&n);
	
	
	for(i = 0;i < n;i++){
		b = a * 0.05;				//bは5250になる 5550
		c = b % 1000;				//cは250になる 550

		if(c > 0){
			b = (b - c + 1000);		//bは6000になる 
		}
		a += b;					//aはになる
	}
	printf("%d\n",a);	
	
	return 0;
}

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

int main(){
	double money = 100000;
	string str;
	int n;
	
	while(1){
		getline( cin, str );
		if( str.size()==0 )	break;
		sscanf(str.c_str(), "%d", &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 <cstdio>
using namespace std;

typedef long long int LLI;

int n;
LLI debt = 100000;

int main() {
  scanf("%d", &n);
  for (int i=0; i<n; i++) {
    debt = debt/100*105;
    if (debt % 1000) debt = (debt/1000+1)*1000;
  }
  printf("%lld\n", debt);
}

C++: #include <iostream>

int main(){
	int n,debt=100000;
	cin>>n;
	for(int i=0;i<n;i++) debt*=1.05;
	std::cout<<(debt%1000 ? debt/1000*1000+1000 : debt)<<'\n';
	return 0;
}

C++: #include <iostream>

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

	const int first = 100000;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + first * 0.05 * nWeeksLater;

	int a = loan / 10000;
	loan = loan % 10000 >= 5000 ? (a + 1) * 10000 : a * 10000;

	std::cout << loan << std::endl;
	system("pause");
}

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

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

int main(void)
{
  int debt = 100000;

  int n;
  scanf("%d", &n);

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

  printf("%d", debt);

  return 0;
}

C++: 
#include <iostream>
#include <vector>
#include <string>
#include <stdio.h>
#include <stdlib.h>
using namespace std;


//
int main(void){
//	FILE* fp_in = freopen("data.txt", "r", stdin);

	int n;
	int debt = 100000;
	cin >> n;
	for(int i = 0; i < n; i++ ){
		debt += 5*debt/100;
		if(debt % 1000 > 0) 
			debt = debt/1000*1000 + 1000;
	}
	cout << debt << endl;
//	while(1){}
	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int money = 100000;
	int week;
	
	scanf("%d", &week);
	
	for (int i = 0; i < week; i++){
		money += money * 0.05;
		money = (money + 999) / 1000 * 1000;
	}
	
	printf("%d", money);
	
	return (0);
}

C++: #include <iostream>

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

	const int first = 100000;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + first * 0.05 * nWeeksLater;

	int a = loan / 10000;
	loan = loan % 10000 >= 5000 ? (a + 1) * 10000 : a * 10000;

	std::cout << loan << std::endl;
}

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

int main(void) {
    int n = 5;
    
    long long int remain = 100000;
    
    for(int i = 0; i < n; i++) {
        remain *= 1.05;
        if(remain % 1000 > 0)
            remain = (remain - remain % 1000) + 1000;
    }
    
    std::cout << remain << std::endl;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main() {
	int n; cin >> n;
	int ans = 100000;
	float temp = 100000;
	for (int i = 0; i < n; i++) {
		temp += ans * 0.05;
		ans = round(temp / 10000) * 10000;
	}
	cout << ans << endl;
}

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

int main(){
    int n;
    cin>>n;
    double a=100;
    for(int i=0;i<n;i++){
        a*=1.05;
        if((a-(int)a)>0)a+=(1-(a-(int)a));
    }
    cout<<(int)a<<0<<0<<0<<endl;
}