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>
#include <math.h>
using namespace std;
int main(){
	long double x=100000 , w ;
	int i , n , y ;
	while( cin >> n ){
		for( i=1 ; i<=n ; i++ ){
		x = x * 1.05 ;
		y = x;
		y = y/100 ;
		x =y;
		x = x/10;
		x = ceil( x );
		x = x*1000;
	}
	cout << x << endl;
}
}

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

C++: #include <iostream>
using namespace std;
 
int main(){
        int week,a,b,ans,aans;
        cin>>week;
        a=100000*0.05;
        b=week+1;
        a*=b;
        ans=100000+a;
        aans=ans/1000;
        aans=ans*1000;
        if(aans!=ans)ans+100;
        cout<<ans<<endl;
}

C++: #include <iostream>
#include<string>
#include<math.h>
#include<stdio.h>
#include <algorithm>
using namespace std;
int main(void){
    // Here your code !

int n;
int m=100000;
cin>>n;
for(;n--;){
if(int(m*1.05)%1000==0) m=int(m*1.05);
else m=int(m*1.05)+(1000-int(m*1.05)%1000); 
}

cout<<m<<endl;
return 0;
}

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

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

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

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

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

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

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

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

int main() {
	int N;
	float money = 100000;

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
	}
	float m = money / 10000;
	cout << ceil(m) * 10000 << endl;
	
/*
	string a_str = to_string(money);
	vector<char> strs;

	for (int i = a_str.size()-1; i >= 0; i--) {
		strs.push_back(a_str[i]);
	}
	rep(i,4) {
		strs[i] = '0';
	}

	if (strs[4] > '9') {
		strs[4]	= '0';
		strs[5] = strs[5] + 1;
	}
	else {
		strs[4] = strs[4] + 1;
	}

	vector<char> strs2;
	for (int i = strs.size()-1; i >= 0; i--) {
		cout << strs[i];
	}
	cout << endl;
*/

	return 0;
}

C++: #include <stdio.h>
int main(){
int debt = 100000;
int week;
scanf("%d", &week);
while(week--){
debt *= 1.05;
if(debt % 1000){
debt = (debt / 1000 + 1) * 1000;
}
}
printf("%d\n", debt);
return 0;
}

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

using namespace std;

int calcDebt(int debt){
	double tmp = debt * 1.05;
	int result = (int) ceil(tmp);
	if(result % 1000 == 0){
		return result;
	}else{
		return (result / 1000 + 1) * 1000;
	}
}

int main() {
	int result = 100000;
	int n;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		result = calcDebt(result);
	}
	printf("%d", result);
	return 0;
}

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

int main() {
	int x = 100;
	int n; scanf("%d", &n);
	for(int i = 0; i < n; i++) {
		x = (x*21-1)/20+1;
	}
	printf("%d\n", x*1000);
	return 0;
}

C++: #include<stdio.h>

int main(void){
	int n,i,x=100000,z;
	
	scanf("%d",&n);

	for(i=0;i<n;i++)
	{
		x = x * 1.05;
		
		if(x % 1000 != 0.0)
		{
			z = (x / 1000)+1;
			x = z * 1000;
		}
	}
	printf("%d\n",x);

	return 0;
}

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

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

C++: #include<cstdio>
#include<cstring>
int main(void){
	int a=100000;
	int n;
	scanf("%d",&n);
	for (int i = 0; i < n; i++){
	a = (((a+19999) / 20000)*1000) + a;
	}
	printf("%d\n", a);
	return 0;
}

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

int main(void){
  int i, k = 100000;

  cin >> i;

  for(int j = 1;j<=i;j++){
    k = k + k * 0.05;
    if(k % 1000 != 0) k += 1000 - (k % 1000);
  }

  cout << k << endl;

  return 0;
}

C++: #include <stdio.h>
#include <string>
#include <iostream>

using namespace std;


int main(){
    int week;
    cin >> week;
    double money =100;

    for(int i=0; i<week; i++){
        money=money * 1.05;
        money+=0.999;
        money=int(money);
    }
    printf("%d\n",int(money)*1000);
}

C++: #include <iostream>

using namespace std;

void solve()
{
	int n;
	cin >> n;
	unsigned long long debt = 100000;
	for(int i = 0; i < n; ++i)
	{
		debt *= 1.05;
		int less_than_thousand = debt % 1000;
		if(less_than_thousand > 0)
		{
			debt += 1000 - less_than_thousand;
		}
	}
	cout << debt << endl;
}

int main()
{
	solve();
	return(0);
}

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<<endl;
	return 0;
}

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

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

	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int n,x,m=100000;
	scanf("%d",&n);

	for(x=0;x<n;x++)
	{
		m=m+m*0.05;

		if(m%1000!=0)
		{
			m+=1000-(m%1000);
		}
	}
	printf("%d",m);
}

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

int main(){
int a;
a=100000;
int b;
b=0;
while(b<n){
a=a/20*21/1000*1000;
b=b+1;}
cout << a<<endl;
}

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

int main(void) {
    int tax = 0.05 * DEFAULT;
    int start = DEFAULT;
    int num;
    cin >> num;
    for(int r = 0; r <= num; r++) {
        start += tax;
    }
    cout << start << endl;
    
    return(0);
}

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

int main() {

  int n;
  cin >> n;

  long long int money = 100000;

  for ( int i = 0; i < n; i++ ) {
    money += money/20;
    if ( money%1000 != 0 ) {
      money = ( money/1000 + 1 ) * 1000;
    }
  }

  cout << money << endl;
  return 0;

}