Go: package main

import (
	"bufio"
	"os"
	"strconv"
	"math"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

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 main() {
	scanner.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(ans)
}

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

#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)

int main(int argc, char *argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int n, ret = 100000;
    cin >> n;

    REP(i, n)
    {
        ret = ret * 1.05;
        ret = (ret % 1000 == 0 ? ret : ret - ret % 1000 + 1000);
    }

    cout << ret << endl;

    return 0;
}

C++: #include <iostream>
#include<stdio.h>
using namespace std;
int main(void) {
	int a,n,i;
	int x=100000;
	scanf("%d",&n);
	for(i=0;i<n;i++){
	    x=x*105/100;
	    if(x%1000!=0){
	        a=(x/1000)+1;
	        x=a*1000;
	    }
            else{
               x=x;}
	}
	cout<<x<<endl;
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cmath>
#include <utility>

#define ll (long long)
#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)


using namespace std;


int main(void)
{
    int n;
    long long money = 100000;
    int keta = 1;
    int judge = 1;
    double temp;
    cin >> n ;
    FOR(i, 1,n+1 )
    {
        money+= 0.05*money;
        temp = money;
        while(judge)
        {
            temp = (int)temp /10;
            if (temp) {
                keta++;
            }else
                judge = 0;
        }
        
        REP(i,3)
        money = money /10;
        money = ceil(money);
        //cout << money << endl;
        REP(i, 3)
        money = money*10;
        keta = 0;
        judge = 1;
    }
    
    
    cout << money << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

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

	cin >> n;

	for (int i = 1; i <= n; i++)
	{
		k = static_cast<int>(k * 1.05 + 999) / 1000 * 1000;
	}

	cout << k << endl;

	return 0;
}

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

int main(int argc, const char * argv[])
{
    int a, n, debt = 100000;
    double rate = 0.05;
    
    cin >> n;
    for (int i = 0; i < n; i++) {
        debt *= (1.00 + rate);
        a = debt % 1000;
        if (a != 0){
            debt = debt / 1000 * 1000 + 1000;
        }
    }
    cout << debt << endl;
    
    return 0;
}

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

C++: #include <stdio.h>

int main() {
    long long weeks = 0;
    double money = 100.0d;
    scanf("%d", &weeks);

    for (long long i = 0; i < weeks; ++i) {
        money *= 1.05d;
    }

    long long result = (int) money;
    if (result < money) {
        result += 1;
    }
    result *= 1000;
    printf("%d", result);

    return 0;
}

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

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

  printf("%d\n",(int)a*1000);
}

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

main(){
	int n;
	cin>>n;
	
	int ans = 100000;
	for(int i=0; i<n; i++){
		ans = (int(ans + ans*0.05 + 999)/1000)*1000;
	}
	cout << ans << endl;
}

C++: #include <stdio.h>

int hoge(int a, int n){
	if(n<1){return a;}
	a*=1.05;
	if(a%1000){
		a+=(1000-a%1000);
	}
	return hoge(a, n-1);
}

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

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

int main() {
	int loan = 100000;
	int hoge = loan * 0.05;
	int n;
	std::cin >> n;

	for (int i = 0; i < n; i++)
		loan += hoge;
	
	if (loan % 1000 < 500)
		loan = loan / 1000 * 1000;
	else
		loan = loan / 1000 * 1000 + 1000;
	
	std::cout << loan << std::endl;
}

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

int main(){
    double money = 10;
    int n;
    cin >> n;
    for(int i=0;i<n;++i){
        money = money*1.05;
    }
    money = ceil(money);
    cout << (int)(money*10000) << endl;
}

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

	cout << a << endl;
}

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

using namespace std;

int main()
{
	int a;
	double kane = 10;
	cin >> a;
	
	for(int i = 0; i < a; i++){
		kane = kane * 1.05;
	}
	/*
	cout << kane << endl;
	*/
	kane = ceil(kane);
	printf("%d0000\n",(int)kane);
	return 0;
}

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

int main(){
int n;
int a=100000;
cin>>n;
while (n--){
	a*=1.05;
	int l=a%1000;
	if(l>0)a+=1000-l;
	
}
cout<<a<<endl;
return 0;
}

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

unsigned long debt(int n) {
	unsigned long tmp;
	if(n == 0) return 100000;
	
	tmp = debt(n - 1) * 1.05;
	if(tmp % 1000 != 0)
		tmp = (tmp / 1000 + 1) * 1000;
	return tmp;
}

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

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

int main(void){
    int i, week;
    int ans = 100000;
    cin >> week;
    for(i = 0; i < week; i++){
        ans = ans * 1.05;
        if(ans % 1000 < 500){
            ans = ans - ans % 1000;
        } else {
            ans = ans + (1000 - ans % 1000);
        }
    }
    cout << ans << endl;
}

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

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

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

C++: #include <cstdio>
int main() {
	int n,debt=100000;
	scanf("%d",&n);
	for(int i=0;i<n;i++) {
		debt=debt*1.05;
		if(debt%1000>0) {
			debt-=debt%1000;
			debt+=1000;
		}
	}
	printf("%d\n",debt);
}

C++: #include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <iomanip>
#include <string>
#include <cmath>
#define PI 3.14159265359
using namespace std;

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

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

int main()
{
	int n;
	int ans = 100000;
	std::cin >> n;
	
	while( n-- ){
		ans *= 1.05;
		int temp = ans % 1000;
		if( temp ){
		 	ans -= temp;
			ans += 1000;
		}
	}
	
	std::cout << ans << std::endl;

	return 0;
}

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

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

int main(void)
{
  int n;
  cin >> n;
  double ans = 100000.0;
  for(int i = 0; i < n; i++){
    ans = ans*1.05;
  }
  ans = (int)ans/1000;
  ans = ans+1;
  ans = ans*1000;

  cout << ans << endl;

  return 0;
}