Go: package main

import (
	"fmt"
	"math"
)

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

	r := 100.0
	for i := 0; i < n; i++ {
		r = math.Ceil(1.05 * r)
	}

	fmt.Println(int(r * 1000))
}

C++: 
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <algorithm>
#include <math.h>
#include <utility>
#include <set>
#include <map>
#define INF 100000
using namespace std;
typedef long long int ll;

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

C++: #include<iostream>
using namespace std;
int main() {
	int a, b;
	unsigned long f;
	f = 100000;
	cin >> a;
	for (int i = 0; i < a; i++){
		f += f / 20;
		if (f % 1000 != 0) {
			b = f % 1000;
			f += 1000 - b;
		}
	}
	cout << f << endl;
	char k;
	cin >> k;
}

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

int money = 100000;

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

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

using namespace std;

int main() {
	int n;
	double debt = 100000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		debt *= 1.05;
		debt /= 1000;
		debt = ceil(debt);
		debt *= 1000;
	}
	printf("%ld\n", (long)debt);
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main() {
    int d = 100000;
    int n; cin >> n;
    for(int i = 0 ; i < n ; i++){
        d = d * 105 / 100;
        if( d % 1000 > 0 ) d += 1000 - d % 1000;
    }
    cout << d << endl;
}

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

int main(){

  int n;
  int sum;

  cin>>n;

  sum=100000*(1+n*0.05);

  if(sum%10000!=0){
    sum=sum/10000;
    sum=sum+1;
    sum=sum*10000;
  }

  cout<<sum<<endl;

}

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>

int main(void)
{
	int n;
	int m = 100000;

	std::cin >> n;

	while (n--) {
		m *= 1.05;
		m = (m + 999) / 1000 * 1000;
	}

	std::cout << m << std::endl;

	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){
 long long int Debt = 100000;
 int n;

 cin >> n;

 for (int i=0; i<n; i++) Debt = Debt * 1.05;
 if(Debt % 10000 > 0) Debt = Debt + 10000;

 cout << n << endl;

 return 0;
}

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

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

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

int main(){
	int len;
	int debt = 100000;
	cin >> len;
	for(int i = 0; i < len; i++){
		debt += debt * 0.05;
	}
	string s = to_string(debt);
	reverse(s.begin(), s.end());
	if(s[3] != '0'){
		char c = ((s[4] - '0') + 1) + '0';
		s[4] = c;
	}
	s[0] = '0';
	s[1] = '0';
	s[2] = '0';
	s[3] = '0';
	reverse(s.begin(), s.end());
	cout << s << endl;
	return 0;
}

C++: #include <iostream>

int main(){
	
	int n, debt = 100000;
	std::cin >> n; // input
	// calc debt
	for(int i = 0; i < n; ++i){
		debt *= 1.05;
		// need this process for submitting
		if(debt % 1000 != 0){
			debt += 1000;
			debt -= debt % 1000;
		}
	}
	// output
	std::cout << debt << std::endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

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

  cin >> n;
  for(int i=0; i<n; i++){
    debt += debt * 0.05; 
    //1000円未満切り上げ
    tmp = (double)debt/1000 - debt/1000;
    tmp = (tmp > 0.0) ? 1.0 : 0.0;
    debt = (debt/1000) * 1000 + tmp * 1000;
  }

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

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

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

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define P pair<int,int>
#define FOR(I,A,B) for(ll I = ll(A); I < ll(B); ++I)

int main(){
	
	ll ans = 100000;
	ll n;
	cin >> n;
	FOR(i,0,n){
		ans *= 105;
		ans /= 100;
		if(ans%1000){
			ans /= 1000;
			ans *= 1000;
			ans += 1000;
		}
	}
	cout << ans << endl;
}

C++: #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

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

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

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

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

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

int main(){
    int n;
    cin >> n;
    int p = 100;
    for(int i=0; i<n; i++){
        p=ceil(p*1.05);
    }
    cout << p*1000 << endl;
}

C++: #include<iostream>
using namespace std;
int main(){
    int n;
    int debt = 100000;
    cin >> n;
    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<iostream>

using namespace std;

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

C++: #include<iostream>

using namespace std;
int Weeks;
int Debt = 100000;
int Interest;

int Rounded (int x)
{
    int Remain,y;
    if(x%1000!=0)
    {
        Remain = x%1000;
        y = x-Remain;
        y = y+1000;
        return y;
    }
    else
    {
        return x;
    }

}
int main()
{
    cin >> Weeks;
    for(int z = 0; z < Weeks; z++)
    {
        Interest = Debt * 1.05;
        Interest = Rounded(Interest);
        Debt = Interest;


    }


    cout << Interest << endl;
}

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 << money << endl;

	return 0;

}