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

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

using namespace std;

signed main(){
    int n;
    double ret = 100000;
    scanf( "%d", &n );
    while( n > 0 ){
        ret *= 1.05;
        ret = ceil( ret / 1000 ) * 1000;
        n--;
    }
    printf( "%.0f\n", ret  );
    return 0;    
}

C++: #include<stdio.h>

int main(void){

	int ans,week,i,debt;
	
	debt=100000;				//ØàÌúl10
	scanf("%d",&week);

	ans=debt+debt*0.05;		//úqvZ
	
	for(i=1;i<week;i++){
		
		ans=ans+ans*0.05;
		
		if(ans%1000!=0){		//ç~¢Øèã°
			ans=ans-(ans%1000)+1000;
		}
	}
	printf("%d\n",ans);
}

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

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

int main(){
  int debt = 100000;

  int n; cin>>n;
  for(int i=0;i<n;++i){
    debt *= 1.05;
    int tmp = (debt/1000)*1000;
    if(debt>tmp){
      tmp += 1000;
      debt = tmp;
    }
  }

  cout<<debt<<endl;

  return EXIT_SUCCESS;
}

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

using namespace std;

int main(int argc, char const* argv[])
{
  int weeks;
  cin >> weeks;

  int debt = 100;
  for (int i = 0; i < weeks; i++) {
    debt = ceil(debt * 1.05);
  }

  cout << debt * 1000 << endl;
  return 0;
}

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

int main(){
    int num=100000;
    int n;
    cin>>n;
    for(int a=0;a<n;a++){
        num+=num/20;
        if(num%1000!=0){
            num-=num%1000;
            num+=1000;
        }
    }
    cout<<num<<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%10000!=0){
      sum=sum/10000;
      sum=sum+1;
      sum=sum*10000;
    }
  }
  cout<<sum<<endl;

}

C++: #include<iostream>
#include<cstdio>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long int ll;

int main()
{
    int n;
	int ans=100000;
	cin >> n;
	for(int i=0;i<n;i++){
		ans=ans*21/20;
		if(ans%1000!=0){
			ans+=(1000-ans%1000);
		}
	}
	printf("%d\n",ans);
    return 0;
}