Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(ans)
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		// tmp = Ceil(tmp, -4) なぜかうまくいかない
		tmp = Ceil(tmp, -3)
		fmt.Printf("now tmp: %d\n", int(tmp))
	}
	return tmp
}

func Ceil(f float64, places int) float64{
	shift := math.Pow(10, float64(places))
	return math.Ceil(f * shift)/shift
}

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

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

int main() {
	int n;
	double d = 100000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		d *=  1.05 / 1000;
		if (d - floor(d) > 0.00001) {
			d = ceil(d) * 1000;
		}else d *= 1000;
	}
	cout << (int)d <<endl;
		
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(void)
{
    int n,m;
    m=100000;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        m=m*21;
        if(m%20000==0)m=m/20;
        else
        {
            m=m/20000;
            m=m*1000+1000;
        }
    }
    cout<<m<<endl;
    return 0;
}

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

double cutup(double x) {
  if (x - (double)((int)x / 1000) * 1000 > 0) {
    x = (double)((((int)x / 1000) + 1) * 1000);
  }
  return x;
}

double money(double x, int target, int depth = 0) {
  if (target == depth) { return x; }
  return money(cutup(x * 1.05), target, depth + 1);
}

int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int n, x;
  cin >> n;

  cout << money(100000., n) << endl;

  return 0;
}

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

void test();
int  interest(int debt, float interest_rate, int n);

int main(void)
{
	test();
	return 0;
}


void test()
{
	int debt,n;
	double money;
	float interest_rate;
	debt = 100000;
	interest_rate = 1.05;
	cin >> n;

	debt = interest(debt, interest_rate, n);

	money = (double) debt / 1000;		// 1000?????????????°???°?????\??????

	money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????

	debt = money;

	cout << debt << endl;
}

int interest(int debt, float interest_rate,int n)??????//?????°??¢??°
{

	if (n == 1)
		return debt * interest_rate;
	else
		return interest(debt, interest_rate, n - 1) * interest_rate;
}

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

int main() {
    int n;
    cin >> n;
    double Kdebt = 100;
    for (int i = 0; i < n; i++) {
        Kdebt = ceil(Kdebt * 1.05);
    }
    printf("%d\n", (int)Kdebt * 1000);
}

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

using namespace std;

int main() {
	
	double weeks=0;
	double debit=100.0;
	
	
	cin >> weeks;
	
	for(int i=0; i<weeks;i++){
		debit=debit+debit*0.05;
		debit=ceil(debit);
	}
	
	cout <<debit*1000<<endl;
	
	
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repd(i,a,b) for (int i = (a); i < (b); i++)
typedef long long ll;
int main(void)
{
	int n, sum = 100000;
	cin >> n;
	rep(i, n)
	{
	    sum *= 1.05;
        if (sum%1000!=0) sum = (sum/1000 + 1)*1000;
	}
    cout << sum << endl;
}

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