Go: package main

import "fmt"

func roundUp100(dept float64) float64 {
	iDept := int(dept)
	if iDept-(iDept/1000*1000) != 0 {
		iDept = ((iDept / 1000) + 1) * 1000
	}
	return float64(iDept)
}

func main() {
	var week int
	fmt.Scan(&week)

	dept := 100000.0
	for i := 0; i < week; i++ {

		dept *= 1.05
		dept = roundUp100(dept)
	}

	fmt.Println(dept)
}

C++: // #define _CRT_SECURE_NO_WARNINGS
// #define _USE_MATH_DEFINES
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <locale>
#include <cctype>
#include <sstream>
using namespace std;

typedef long long LL;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef map<int, int> MAPII;
typedef multimap<int, char, greater<int> > MuMAPIC;
typedef vector<pair<int, int> > VPII;
typedef multimap<int, string, greater<int> > MuMIS;

#define MP make_pair
#define FAST_IO  cin.tie(0); ios::sync_with_stdio(false);
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
//for gcc (???test)
// #define FOREACH_IT(it,c) for(typeof(c)::iterator it=(c).begin(); it!=(c).end(); ++it)
//for Visual Studio
#define foreach_it(type,it,c) for(type::iterator it=c.begin(),c_end=c.end();it!=c_end;++it)
// for Debug.
#define DUMP_VVI(b) FOR(i,0,b.size()){FOR(j,0,b[i].size())printf("%d ",b[i][j]);puts("");}
#define D_OUT(str,value) if(dbgF){cout<<str<<" : "<<value<<endl;}
// ??\??????push_back(d)???array[d]???????????????1?????§?????????
// int INPUT_INT() {int d;cin>>d;return d;}
template<class T>T IN(){T d;cin>>d;return d;}
// ?????§??¬?´???°???Greatest Common Divisor???
LL gcd(LL a, LL b){ return (b > 0) ? gcd(b, a%b) : a; }
// ????°???¬?????°???Least Common Multiple???
LL lcm(LL a, LL b){ return a / gcd(a, b) * b; }

// ------------------- include, typedef, define END. -------------------

LL oh_no_plus(LL now){
	LL afterPlus=0;
	// 5% ???????????????????????????
	afterPlus = now + now*0.05;
	// ?????????????????? 1,000 ??????????????????????????????
	afterPlus = ceil(afterPlus/1000.0);
	return afterPlus * 1000;
}

int main(){
	FAST_IO;
	// for D_OUT(str, value)  ... cout<< str <<" : "<< value <<endl;
	bool dbgF = true;
	
	//??????????????????????????????.
	int n;
	while(cin>>n){
		LL ans = 100000;
		FOR(i,0,n){
			ans = oh_no_plus(ans);
		}
		cout << ans << 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 *= 1.05;
    if((int)ans%1000){
      ans-=(ans%1000);
      ans+=1000;
    }
  }

  cout<<ans<<"\n";
}

C++: #include <iostream>
using namespace std;
int main(){
    int a=100000,b=0,t;
    cin>>t;
    
    if(t==0)cout<<a<<endl;
    else if(t<=100){
      for(int k=1;k<=t;k++){
         b=a*1.05;
         b=(b+900)/1000*1000;
         a=b;
       }
     cout<<b<<endl;
    }
}

C++: #include<iostream>
#include<iomanip>
#include<algorithm>
#include<cctype>
#include<cmath>
#include<string>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;

int main() {
	int a=100000,n;
	cin>>n;
	while(n-->0){
		a*=1.05;
		a=(a+999)/1000;
		a*=1000;
	}
	cout<<a;
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <utility>
#include <string>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <string.h>
#include <deque>
#define REP(i,j,n) for(int i=j;i<n;i++)
#define SORT(x) sort(x.begin(),x.end())

using namespace std;



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

C++: #include <iostream>
using namespace std;
int main(void){
    int n,ans=100000;
    cin>>n;
    for(int i=0;i<n;i++){
        ans+=ans*0.05;
        if(ans%1000==0){
            ans/=1000;
            ans*=1000;
        }
        else{
            ans/=1000;
            ans+=1;
            ans*=1000;
        }
    }
    cout<<ans<<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++){
    money*=1.05;
    if(money%1000!=0){
      money-=money%1000;
      money+=1000;
    }
  }
  cout<<money<<endl;
  return 0;
}

C++: #include<stdio.h>
int main(void)
{
    int n,i,j,x;
	scanf("%d",&n);
    i=100000;
	for(j=0;j<n;j++){
	    i=i*5/100+i;
		x=i%1000;
		if(x!=0){
		    x=1000-x;
			i=i+x;
		}
	}
	printf("%d\n",i);
	return 0;
}

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

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

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

using namespace std;

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

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    long n = 0;
    cin >> n;
    
    long rest = 100000;
    for (int i = 0; i < n; i++) {
        rest *= 1.05;
    }
    
    if(rest % 1000 != 0){
        rest = rest + 1000 -  rest % 1000;
    }
    
    
    printf("%ld", rest);
    
    return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
int main(){
	long long int ans=100000;
	int n;
	cin>>n;
	for(int i=0;i<n;i++){
		ans=ans*105/100;
		if(ans%1000!=0){
			ans=ans/1000*1000+1000;
		}
	}
	cout<<ans<<endl;
    return 0;
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>
#include <ctype.h>
#include <string> 
#include <sstream>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <map>
#include <queue>
#include <utility>
#include <vector>
#include <set>
#include <list>
#include <cstring>
#include <stack>
   
using namespace std;

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

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

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

	cin >> n;
	while (n--) 
		debt = (debt + 999) / 1000 * 1000;
	cout << debt << endl;

	return 0;
}

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

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl;
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    int n;
    cin >> n;
    int b = 100000;
    rep(i, n)
    {
        b = b * 1.05;
        if (b % 1000 != 0)
        {
            b = (int)(b / 1000 + 1) * 1000;
        }
    }
    OP(b)
    return 0;
}

C++: #include<iostream>
using namespace std;
 
int main() {
    int d = 100000;
    int n;
    cin >> n;
    while(n-- > 0) {
        d *= 1.05;
        if(d % 1000) {
            d = (d / 1000 + 1) * 1000;
        }
    }
        cout << d << endl;
    return 0;
}

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

int n;//n週間
double sum;//n週間後の借金

int main(){
  sum = 100000;
  scanf("%d",&n);
  for(int i= 0;i < n;i++){
    sum += 0.05*sum;
    sum = ceil(sum/1000)*1000;
}
  
  int ans =(int)sum;
  printf("%d",ans);
}