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<iostream>

int main(){
	int n;
	double sum=100000;
	std::cin>>n;
	for(int i=0;i<n;i++){
		sum*=1.05;
		sum/=1000;
		sum=std::ceil(sum);
		sum*=1000;
	}
	std::cout<<sum<<std::endl;
	return 0;
}

C++: #include <stdio.h>

int main(void){
int n;
scanf("%d",&n);
int coin=100000;
for(int m=0;m<n;m++){
coin*=1.05;
coin+=5;
coin/=10;
coin*=10;
coin+=50;
coin/=100;
coin*=100;
coin+=500;
coin/=1000;
coin*=1000;
}
printf("%d\n",coin);
return 0;
}

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

int main() {
	int n;
	double a=10;
	cin >> n;
	for (int i = 0; i < n; i++) {
		a += a*0.05;
		if (a * 10 != int(a * 10)) {
			a = a * 10 + 1;
			a = int(a);
			a = a / 10;
		}
	}
	cout << a*10000 << endl;
	return 0;
}

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

C++: #include <iostream>

using namespace std;

int main() {

	int i=0, n, debt=100000;

	while(1) {
		cin >> n;
		if(n<101)
			break;
	}

	while(i<n) {
		debt*=1.05;
		i++;
	}

	debt=((debt+9999)/10000)*10000;

	cout << debt << endl;

	return 0;

}

C++: /* -*- coding:utf-8 -*- */

#include <iostream>

using namespace std;

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

  cin >> n;

  for(int i = 0; i < n; i++) {
    money *= 1.05;
    int p = money % 1000;
    
    if(p != 0) {
      money -= p;
      money += 1000;
    }
  }
  
  cout << money << endl;

  return 0;
}

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

int main()
{
  int n;
  int ans = 100000;
  cin >> n;
  while( n-- ) {
    ans += ans / 100 * 5;
    if( ans % 1000 > 0 ) {
      ans = ans / 1000 * 1000;
      ans += 1000;
    }
  }

  cout << ans << endl;
}

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

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

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

C++: #include <bits/stdc++.h>

using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int debt = 100000;
  int n;
  cin >> n;
  for (int i = 0; i < n; i ++) {
    debt = (int)ceil(((double)debt * 1.05) / 1000) * 1000;
  }
  cout << debt << endl;
}

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

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

C++: #include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<ll,ll> P;
const ll MOD=1234567;
const ll INF=1000000010;
const ll LINF=1000000000000000010LL;
const int MAX=500010;
const double EPS=1e-3;
int dx[4]={0,1,0,1};
int dy[4]={0,0,1,1};
int main(){
	int n;cin>>n;
	int m=100000;
	for(int i=0;i<n;i++){
		m=m*105/100;
		if(m%1000){
			m-=m%1000;
			m+=1000;
		}
	}
	cout<<m<<endl;
	return 0;
}

C++: #include<cstdio>
int main(){ 
    int n;
    scanf("%d",&n);
    int m=100000;
    for(int i=0;i<n;i++){
        int d=int(m*0.05);
        d%1000>0?d=d/1000*1000+1000:d=d/1000*1000;
        m+=d;
    }
    printf("%d\n",m);
}

C++: #include <iostream>

using namespace std;

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

C++: #include<iostream>
#include<string>
#include<queue>
#include<stack>
using namespace std;
int main(){
	stack<int>st;
	bool bo=false;
	int n,a=100000;
	cin>>n;
	for(int i=0;i<n;i++){
		a+=a*0.05;
	}
	if(a%100==0 && a%10==0 && a%10==0){
		bo=true;
	}
	cout<<a<<endl;
	a/=10000;
	if(bo==true){
	}
	else if(bo==false){
		a=a+1;
	}
	cout<<a*10000<<endl;
	return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <list>
#include <map>
#include <algorithm>
#include <stack>

#define AGE 1000
#define DEBUG 0

using namespace std;


int main(){
	int reverseMoney = 100000;
	int week = 0;
	while(cin >> week){
		reverseMoney = 100000;
		for(int i = 0; i < week; i++){
			reverseMoney += reverseMoney * 5 / 100;
			if(reverseMoney % AGE != 0 && reverseMoney % AGE < 1000){
#if DEBUG
				cout << "reverseMoney % AGE : " << reverseMoney % AGE << endl;
#endif
				reverseMoney -= reverseMoney % AGE;
				reverseMoney += AGE;
			}
#if DEBUG
			cout << reverseMoney << endl;
#endif
		}
		cout << reverseMoney << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <string>
#include <functional>
#include <numeric>
#include <ctype.h>
#include <cstdlib>
#include <string.h>
#include <cmath>
#include <cstdio>





using namespace std;


int main()
{
	int count, money = 100000;

	cin >> count;

	for (int i = 0; i < count; i++)
	{
		money += money * 0.05;
		if (money % 1000 > 0)
		{
			int m = money / 1000;
			m++;
			money = 1000 * m;
		}
	}

	

	cout << money << endl;
}

C++: #include <iostream>
using namespace std;
int main(void){
     int loan = 100000;
    int week;
    cin >> week;
    for(int i=0;i<week;i++) {
        loan *= 1.05;
    }
    double tmp = (double)loan / 10000;
    tmp += 0.5;
    loan = (int)tmp;
    loan *= 10000;
    cout << loan << endl;
}

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

using namespace std;

int main() {
   double v = 100000;
   double r;
   int n;

   cin >> n;

   for(int i = 0; i < n; i++) {       
       v += v * 0.05;
       r = fmod(v, 1000.0);          
        if(r != 0) {
            v += (1000 - r);
        }
   }

   cout << v << endl;

    return 0;

}

C++: #include<iostream>
 
int main(){
int n,a,i
std::cin>>n;
 for(a=100000,i=0;i<n;++i){
      a=a+a/20;
        if(a%1000=0){
        a=a+1000-a%1000
        }
        ++a
        }
        std::cout<<a<<std::endl;
        }
        return 0;

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 <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()
{
	int n;
	int roan = 100000;
	
	cin >> n;

	for (int i = 0; i < n; ++i){
		roan = (int)(roan*1.05);
	} // end for
	roan += 5000;
	roan = (roan/10000)*10000;
	cout << roan << endl;	

	return 0;
}

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

int main()
{
	int m = 100000;
	int n;
	cin >> n;

	for(int i=0; i<n; i++)
	{
		m += m / 20;
		if(m % 1000 != 0) m = (m / 1000 + 1) * 1000;	
	}
	printf("%d\n", m);
}