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 n, d = 100000;
	cin >> n;
    for (int i = 0; i < n; i++) {
        d = d * 1.05;
        if (d % 1000 > 0) {
            d = d - (d % 1000) + 1000;
        }
    }
    cout << d << '\n';
    return 0;
}

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

int main() {
	ios_base::sync_with_stdio( false );

	int n;
	cin >> n;

	int a = 100000;

	for( int i = 0; i < n; ++i ) {
		a += (a * 5 / 100 + 999) / 1000 * 1000;
	}

	cout << a << 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<stdio.h>

int main(){
  int i,n;
  int sum = 100000;
  scanf("%d", &n);
  for(i=0;i<n;i++){
    sum=sum*1.05;
  }
  if(sum%1000!=0)
    { sum=sum/1000;
      sum=(sum+1)*1000;
    }
  printf("%d\n", sum);

  return 0;
}

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

int advance_n(int ans,int n)
{
	return (ans - ans % int(pow(10,n)) + (ans - ans % int(pow(10,n)) - ans % int(pow(10,n+2)) != 0)*int(pow(10,n)));
}

int how_much_debt(int n)
{
	if (n==0)
		return 100000;
	else
		return 1.05 * how_much_debt(n-1);
}

int main()
{
	int a;
	cin >> a;
	cout << advance_n(how_much_debt(a),4) << endl;
}

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

int main()
{
	int n;
	double debt = 10;//10(??????), 1000??? = 0.1(??????)
	const double risi = 0.05;

	cin >> n;
	for(int i = 0;i < n;i++){
		debt += debt * risi;
		//cout << i << " : " << debt << endl;
	}
	
	cout << ceil(debt) * 10000 << endl;

	return 0;
}

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

int main()
{
	int n;
	double debt = 100, risi = 0.05;

	cin >> n;
	for(int i = 0;i < n;i++){
		debt += debt * risi;
		debt = ceil(debt);
	}

	cout << debt * 1000 << endl;

	return 0;
}

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

C++: #include <stdio.h>

using namespace std;


int main(){
	int debt = 100000,n;
	scanf("%d",&n);

	for(int i=0;i<n;i++){
		debt=(debt/100)*105;
		if((debt%1000)>0){
			debt+=(1000-(debt%1000));
		}
	}

	printf("%d\n",debt);

    return 0;
}

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

int main(){
    int n;
    cin >> n;
    for(int i=0;i<n;i++){
        n = n * 1.05;
        if(n%1000 > 0)
        {
            n = n/1000*1000+1000;
        }
    }
    cout << n;
    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 <stdio.h>

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

C++: #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
 int n, i, sum = 100000, count;
 cin >> n;
 for(i = 0;i < n;i++){
  sum = sum * 1.05;
  if(sum % 1000 != 0){
  sum = sum / 1000;
  sum = sum + 1;
  sum = sum * 1000;
  }
 }
 
 cout << sum << endl;

 return 0; 
}

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

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

C++: #include <math.h>
#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <string>

#define YES "YES"
#define NO "NO"
#define space ' '

using namespace std;

void func();

int main(void)
{
	
	func();

	return 0;
}


void func()
{
	int n;
	double debt;

	debt = 100000;

	cin >> n;
	while (n-- > 0)
	{
		debt = debt * 1.05;

		if ((int)debt%1000 > 0 || debt - (int)debt > 0)
		{
			debt = (int)debt/1000;
			debt = debt*1000+1000;
		}


		cout << debt << endl;
	}
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n;
	double debt = 100.000;
	cin >> n;
	for(int i=0;i<n;i++){
		debt *= 1.05;
		debt = (int) (debt + 0.999);
	}
	
	debt *= 1000;
	cout << debt << endl;
	
	return 0;
}

C++: #include <iostream>

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

C++: #include <iostream>

using namespace std;

typedef long long ll;

int main() {
	int n;
	cin >> n;
	ll c = 100000;
	while (n>0) {
		ll add = c*5/100;
		int i = add%10;
		int j = (add-i)%100;
		int k = (add-i-j)%1000;
		if ((add%1000)!=0) add = add-i-j-k+1000;
		c += add;
		n--;
	}
	cout << c << endl;
	return 0;
}

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

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

C++: #include <iostream>

#define N (1000)

int debt(const int amount, const int weeks)
{
    int ret;
    int fraction; /* 1000円未満額の端数 */
    
    ret = amount;
    for (int i = 0; i < weeks; i++){
        // 利子計算
        ret *= 1.05;
    }
    
    fraction = ret % N;
    
    ret /= N;  // 切り捨てて
    if (fraction != 0){
        // 端数があるなら
        // 切り上げる
        ret++;
    }
    ret *= N;
    
    return ret;
}

int main()
{
    int n;
    
    std::cin >> n;
    
    std::cout << debt(100000, n) << std::endl;
    
    return 0;
}

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;
	}
	kane = ceil(kane);
	printf("%d0000\n",(int)kane);
	return 0;
}

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

int main()
{
	double thous = 100;
	int debt;
	int n;
	
	cin >> n;
	for (int i = 0; i < n; i++) {
		thous = ceil(thous * interest);
	}
	debt = thous * 1000;
	cout << debt << "\n";
	return 0;
}

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

typedef unsigned long long ull;
int main(void){
  ull c = 100000;
  int n; cin >> n;
  while(n--){
    c *= 1.05;
    if(c%1000 > 0){
      c = c - c%1000 + 1000;
    }
  }
  cout << c << endl;
  return 0;
}