Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() int {
	n, err := strconv.Atoi(nextString())
	if err != nil {
		fmt.Printf("strconv.Atoi failed: %v\n", err)
	}
	return n
}

func main() {
	scanner.Split(bufio.ScanWords)

	n := nextInt()
	debt := 100.0 // 100千円
	for i := 1; i <= n; i++ {
		debt = math.Ceil(1.05 * debt)
	}
	fmt.Println(int(math.Ceil(debt)) * 1000)
}

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>
#include <string>
using namespace std;
int main() {
double n=100000;
int i,b;
cin>>b;
for(i=0;i<5;i++){
n*=1.05;
n=(int)(n+999)/1000*1000;
}

cout<<n<<endl;
  return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <vector>
#include <cmath>
#include <cctype>
using namespace std;

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

C++: #include<iostream>
#include<stdio.h>
int main(){
	
	int n,i,a,b,okane=100000;

    std::cin>>n;
	for(i=0;i<n;i++){	
		okane=okane*1.05;
		if(okane%1000!=0){
			a=okane%1000;
			b=1000-a;
			okane=okane+b;
			
			
			
			
			}

		}
    std::cout<<okane;

	system("pause");
	
	
	
	
	

	return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>
#include <algorithm>
#include <iomanip>
#include <cmath>
#include <string>

int main(){
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    int n;
    std::cin >> n;
    double loan = 100000;
    for(int i=0; i<n; ++i){
        loan *= 1.05;
        loan = std::ceil(loan/1000)*1000;
    }
    std::cout << loan << "\n";
    return 0;
}

C++: #include <iostream>
#include <cmath>
#include <cstdio>
#define DEFAULT 100000
using namespace std;

int ceiler(double start) {
    //cout << start << endl;
    start /= 1000;
    //cout << start << endl;
    start = ceil(start);
    start *= 1000;
    return(start);
}

void check(int num) {
    cout << ceiler(num) << endl;
}

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

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

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

#define DEBIT 100000

int main(){
	int debit = DEBIT, y;
	cin >> y;
	for(int i = 0; i < y; i++){
		debit *= 1.05;
		if(debit % 1000 > 0){
			debit = (debit / 1000 + 1) * 1000;
		}
	}
	cout << debit << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
#define L long long int
int main(){
int n,ans=100000;
cin>>n;
while(n--){
	ans*=1.05;
	ans+=ans%1000==0 ? -ans%1000:1000-ans%1000;

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

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%1000!=0){
      sum=sum/1000;
      sum=sum+1;
      sum=sum*1000;
    }
  }
  cout<<sum<<endl;

}

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

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

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

int main() {
	int n;
	double d = 100000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		d *=  1.05 / 1000;
		if (d - floor(d) > 0.00001) {
			d = ceil(d) * 1000;
		}else d *= 1000;
	}
	cout << (int)d <<endl;
		
	return 0;
}

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

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

double cutup(double x) {
  if (x - (double)((int)x / 1000) * 1000 > 0) {
    x = (double)((((int)x / 1000) + 1) * 1000);
  }
  return x;
}

double money(double x, int target, int depth = 0) {
  if (target == depth) { return x; }
  return money(cutup(x * 1.05), target, depth + 1);
}

int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int n, x;
  cin >> n;

  cout << money(100000., n) << endl;

  return 0;
}

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

void test();
int  interest(int debt, float interest_rate, int n);

int main(void)
{
	test();
	return 0;
}


void test()
{
	int debt,n;
	double money;
	float interest_rate;
	debt = 100000;
	interest_rate = 1.05;
	cin >> n;

	debt = interest(debt, interest_rate, n);

	money = (double) debt / 1000;		// 1000?????????????°???°?????\??????

	money = ceil(money) * 1000;??????????????????// ?°???°?????\?????????????????????????????????

	debt = money;

	cout << debt << endl;
}

int interest(int debt, float interest_rate,int n)??????//?????°??¢??°
{

	if (n == 1)
		return debt * interest_rate;
	else
		return interest(debt, interest_rate, n - 1) * interest_rate;
}

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

int main() {
    int n;
    cin >> n;
    double Kdebt = 100;
    for (int i = 0; i < n; i++) {
        Kdebt = ceil(Kdebt * 1.05);
    }
    printf("%d\n", (int)Kdebt * 1000);
}

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

using namespace std;

int main() {
	
	double weeks=0;
	double debit=100.0;
	
	
	cin >> weeks;
	
	for(int i=0; i<weeks;i++){
		debit=debit+debit*0.05;
		debit=ceil(debit);
	}
	
	cout <<debit*1000<<endl;
	
	
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repd(i,a,b) for (int i = (a); i < (b); i++)
typedef long long ll;
int main(void)
{
	int n, sum = 100000;
	cin >> n;
	rep(i, n)
	{
	    sum *= 1.05;
        if (sum%1000!=0) sum = (sum/1000 + 1)*1000;
	}
    cout << sum << endl;
}

C++: 
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <algorithm>
#include <math.h>
#include <utility>
#include <set>
#include <map>
#define INF 100000
using namespace std;
typedef long long int ll;

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

C++: #include<iostream>
using namespace std;
int main() {
	int a, b;
	unsigned long f;
	f = 100000;
	cin >> a;
	for (int i = 0; i < a; i++){
		f += f / 20;
		if (f % 1000 != 0) {
			b = f % 1000;
			f += 1000 - b;
		}
	}
	cout << f << endl;
	char k;
	cin >> k;
}