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 <iostream>
using namespace std;

int main()
{
	int bor_money = 100000, n;

	cin >> n;

	for (int i = 0; i < n; i++) {
		bor_money *= 1.05;

		if (0 < (bor_money % 1000)) {
			bor_money /= 1000;
			bor_money += 1;
			bor_money *= 1000;
		}
	}
	cout << bor_money << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

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

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

using namespace std;

int roundUp(int x, int index);

int main(void)
{
    int i;
    int n;
    double intrst;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    intrst = 0.05;
    for (i = 0; i < n; i++) {
        debt *= 1.0 + intrst;
        debt = roundUp(debt, 4);
    }
    cout << debt << endl;
    
    return 0;
}

int roundUp(int x, int index)
{
    int exp10;
    
    exp10 = pow(10, index - 1);
    x += exp10 - exp10 / 10;
    x /= exp10;
    x *= exp10;
    
    return x;
}

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

int main() {
    int n;
    cin >> n;
    long long ans = 100000;
    for (int i = 0; i < n; i++) {
        ans *= 1.05;
        string s = to_string(ans);
        for (int j = s.size() - 1; j > s.size() - 4; j--) {
            if (s[j] == '0') continue;
            for (int k = j; k > s.size() - 4; k--) s[k] = '0';
            ans = stoi(s);
            ans += 1000;
            break;
        }
    }

    cout << ans << endl;
    return 0;
}

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

#define N 100000

using namespace std;

int main(void){

  long int debt = 0;

  int n;
  cin >> n;

  debt = pow(1.05,n) * N;

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

  cout << debt << endl;


  return 0;
}

C++: #include<iostream>
using namespace std;
#define F(I,N) for(int I=0;I<N;I++)

int main(){
	int n;
	int p,q;
	while(cin>>n){
		p=100000;
		q=100;
		F(i,n){
			p+=p*5/100;
			q+=q*5/100;
			if(p>q*1000) q++;
			p=q*1000;
		}
		cout<<p<<endl;
	}
	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>
#include <cstdio>
#include <cstring>
using namespace std;

long int kane(int k){
	long int shakkin = 100000;
	for(int i=0;i<k;i++){
		shakkin = shakkin*1.05;
	if(shakkin%1000!=0)
		shakkin += 1000-(shakkin%1000);
	}
	return shakkin;
}

int main() {
	int n;
	cin >> n;
	cout << kane(n)　<<endl;
	return 0;
}

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

int main(){
int n;
double a=100;
cin>>n;
while(n--){
	a=ceil(a+a*5/100);
}
cout<<a*1000;
return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<double, int>;

int main() {
    int n;
    cin >> n;
    int debt = 100000;
    while(n--) {
        debt = debt * 105 / 100;
        debt = (debt+999) / 1000 * 1000;
    }
    cout << debt << endl;
}

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

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


int main() {

//変数の宣言

	int i,j,n,debt;
	
	cin >> n;
	debt = 100000;
	
	for(j=0;j<n;j++){
		debt = debt * 1.05;
		i = 0;
		while(1){
			if (((100000+i*1000)<debt)&&((100000+(i+1)*1000)>=debt)){
				debt = (100000+(i+1)*1000);
				break;
			}
			i++;
		}
	}
	
	cout << debt <<endl;
		
	return 0;
}

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

int main() {
	int week;
	double husai = 100;
	double rishi;
	
	scanf("%d",&week);
	
	for(int i=0;i<week;i++){
		rishi = ceil((husai * 5)/100);
		husai = husai + rishi;
	}
	
	husai = husai * 1000;
	printf("%.f\n",husai);
	
	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>
const int first = 100000;
int round_up(int price) // 1000????????????????????????
{
    if (price%1000 == 0) {
        return price;
    }
    int complement  = 1000 - price%1000; // ?£???°
    return (price + complement);
}
int get_dept(int n) // n??±??????
{
    int dept = first;
    for (int i=0; i<n; i++) {
        dept += dept * 0.05;
        dept = round_up(dept);
    }
    return dept;
}
int main()
{
    int n;
    std::cin  >> n;
    std::cout << get_dept(n) << std::endl;
}

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

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

C++: #include<iostream>

using namespace std;



int loan(int n){
   int amount=100000;
   for(int i=0;i<n;i++){
      amount+=amount*0.05;
      if(amount%1000!=0) amount=(amount-(amount%1000))+1000;
   }
   return amount;
}


int main(){

   int n;

   cin >>n;

   cout <<loan(n)<<endl;

   return 0;

}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(ll i=0;i<n;++i)
#define rrep(i,n) for(int i=n-1;i>=0;--i)
#define yesno(flg) if(flg){cout<<"YES"<<endl;}else{cout<<"NO"<<endl;}
#define MAX_N 1002
#define i197 1000000007
#define Vi vector<int>
#define Vl vector<long long>
#define pb(a) push_back(a)

using namespace std;

typedef long long ll;
typedef pair<ll,ll> P1;
typedef pair<int,int> Pi;
typedef pair<double,Pi> Pdi;
typedef pair<ll,int>Pli;
typedef pair<P1,ll> P2;
const ll INF=100000000001;
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};
struct Road{double cost;int a,b;};
struct edge{int to,cost;};
struct pos{
	int x,y,cost;
};
ll gcd(ll a2,ll b2){
	int t;
	while(b2!=0){
		t=a2%b2;
		a2=b2;
		b2=t;
	}
	return a2;
}
ll lcm(ll a1,ll b1){
	if(a1*b1==0){return 0;}
	return (a1*b1/gcd(a1,b1));
}


int main() {

	int n;
	cin>>n;

	ll t=100000;
	rep(i,n){
		t+=t*0.05;
		if(t%1000>0)t=t+1000-t%1000;
	}
	cout<<t<<endl;

	return 0;
}

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

int main(void)
{
	int n;
	int money = 100000;
	cin >> n;

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


	return 0;
}

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

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

    return 0;
}