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(int(ans))	// intにしないと指数つき表現になってしまう
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		tmp = Ceil(tmp, -3)
	}
	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 <math.h>

int main(){
    int debt = 100;
    int n;
    int i;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        debt = (int)ceil(debt*1.05);
    }
    printf("%d\n",debt*100);
}

C++: #include <stdio.h>

int main(){
    int money = 100000;
    int n;
    scanf( "%d",&n );
    for( int i = 0;i < n;i++ ){
       
        money = ( float )money * 1.05;
        if( money % 1000 > 0 ) money += 1000-( money%1000 );
    }
    printf( "%d\n",money );
    return 0;
}

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

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\n", result);
	return 0;
}

C++: #include<iostream>

using namespace std;


int search(int lim,int money)
{
	money=money*1.05;
	
	if(money%1000>0)
	{
		money/=1000;
		money*=1000;
		money+=1000;
//		cout << "in " << money << endl;
	}
	if(lim==1)
		return money;
	
	
	search(lim-1,money);
}

int main()
{
	int n;
	
	cin >> n ;
	
	int ans = search(n,100000);
	
	cout << ans << endl;
}

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){
	    i=10000-i;
	    n=n+i;
	}
	printf("%d\n",n);
	return 0;
}

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

int main() {
	// your code goes here
	int n,ans;
	ans = 100000;
	cin >> n;
	for (int i=0;i<n;i++) {
		ans = ans * 1.05;
		if (ans%1000!=0)ans=ans + ans%1000
	}
	cout << ans;
	return 0;
}

C++: #include<iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<sstream>
#include<algorithm>
#include<map>
#include<complex>
using namespace std;


#define li			long long int
#define rep(i,to)	for(int i=0;i<((int)(to));i++)
#define repp(i,start,to)	for(int i=(int)(start);i<((int)(to));i++)
#define pb			push_back
#define sz(v)		((li)(v).size())
#define bgn(v)		((v).begin())
#define eend(v)		((v).end())
#define allof(v)	(v).begin(), (v).end()
#define dodp(v,n)		memset(v,(li)n,sizeof(v))
#define bit(n)		(1ll<<(li)(n))
#define mp(a,b)		make_pair(a,b)
#define rin	rep(i,n)
#define EPS 1e-10
#define ETOL 1e-8
#define MOD 1000000007
#define p2(a,b)		cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)		cout<<a<<"\t"<<b<<"\t"<<c<<endl


int main(){
	li n;
	cin>>n;
	
	li res=100;
	rin{
		double tres=(double)res*1.05;
		if(tres-(int)tres==0)res=(int)tres;
		else res=(int)tres+1;
	}
	
	cout<<res*1000<<endl;
	
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int n;
    int money = 100000; 

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

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

int main(){
	long long int n,i,out;
	long double price = 100000;
	cin >> n;
	for(i=0;i<n;i++){
		price = price * 1.05;
	}
	price = ceil(price/10000);
	out = (int)price*10000;
	cout << out;
	return 0;
}

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

int main() {
  int n, d = 100000;
  cin >> n;
  while (n--) {
    d = (int)ceil(d * 1.05 / 1000) * 1000;
  }
  cout << d << endl;
  return 0;
}

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

int main () {
    int n, i;
    double a = 100000;
    cin >> n;
    for(i=0;i<n;i++) {
        a *= 1.05;
        while(a%1000!=0) {
            a += 1;
        }
    }
    cout << a << endl;
}

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

int main(){
    int n;
    long double cath=100000;

    cin>>n;

    for(int i=1;i<=n;i++){
        cath+=cath*0.05;
        cath=ceil(cath*0.001);
        cath*=1000;
    }
    cout<<cath<<endl;

    return 0;
}

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

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

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

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

using namespace std;


int main(){
	int mon = 100000;
	int r = 5;
	int n;
	cin >> n;

	for (int i=0 ; i< n ; i++){
		mon += mon * r / 100;
		if((mon-1)/1000 == mon/1000){
			mon = mon/1000;
			mon++;
			mon = mon * 1000;
		}
	}

	cout << mon << endl;
	return 0;
}

C++: #include<iostream>


using namespace std;

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

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

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

	cin >> n;
	for (int i = 0; i < n; i++){
		a *= 1.05;
		if (a % 100 != 0){
			a = (a / 1000 + 1) * 1000;
		}
	}
	cout << a << endl;
}

C++: #include<iostream>
#include<math.h>
int main(){
	int n;
	double Debt=100000;
	long int Debt_ans;
	std::cin >> n;
	for (int i = 0; i < n; i++){
		Debt = Debt*1.05 / 1000;
		Debt = ceil(Debt);
		Debt = Debt * 1000;
	}
	Debt_ans = Debt;
	std::cout << Debt_ans<< std::endl;
}

C++: #include <iostream>

using namespace std;

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

    int debt = 100'000;

    while (n != 0) {
        debt *= 1.05;
        if (debt % 1000 != 0) {
            debt = (debt / 1000 + 1) * 1000;
        }
        --n;
    }

    cout << debt << endl;
}

C++: #include<iostream>

using namespace std;

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

    int d = 100000;
    int r = 0;

    for(int i = 0; i < n; i++)
    {
        r = d * 0.05;
        if(r % 1000 > 0)
            r = r + (1000 - r % 1000);
        d = d + r;
    }

    cout << d << endl;
}

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

int main(){

  int n;
  int sum=100000;

  cin>>n;

  for(int i=0;i<n;++i)
    sum=sum+sum*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(void){
	int a,b=100000,c,d,e=1000;
	cin>>a;
	for (int A=0;A<a;A++){
		c=b*1.05;
		d=c%1000;
		if (d!=0){
			e-=d;
			c+=e;
			b=c;
			e=1000;
		}
		b=c;
	}
	cout<<c<<endl;
	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;
}