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++: //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007&lang=jp
#include <iostream>
#include <cstdio>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <array>
#include <numeric>
#include <functional>

#define rep(i,n) for(int i=0;i<n;i++)
#define scanInt(i) scanf("%d", &i)

using namespace std;


int main(){

	int init = 100000;
	double r = 1.05;

	int n;
	scanInt(n);
	rep(i,n){
		init *= r;
		if(init % 1000 != 0){
			int a = init / 1000;
			a+=1;
			init = a*1000;
		}
	}
	printf("%d\n", init);

	return 0;
}

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

using namespace std;

int main()
{
    unsigned int n = 100000;
    int week;
    
    cin >> week;
    
    for (int i = 0; i < week; i++)
    {
        n *= 1.05;
        if (n % 1000 > 0)
        {
            n = (n / 1000 + 1) * 1000;
        }
    }
    
    cout << n << endl;
    
    return 0;
}

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

C++: #include <iostream>

int main(){
  int n;
  int debt = 100000;
  
  std::cin >> n;
  for(int i=0; i<n; i++){
    debt = round((double)debt * 1.05);
    int under = debt % 1000;
    if(under==0)
    else{
      debt = debt - under + 1000;
    }
  }
  std::cout << debt << std::endl;
  
  return 0;
}

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

void test3()???
int interest(int debt, double interest_rate,int n);


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

void test()
{
	int debt,n;
	debt = 100000;
	cin >> n;

	debt = interest(debt, 1.05, n) ;

	if (debt % 1000 > 0)
	{
		debt = debt - (int)debt % 1000 + 1000;
	}
	
	cout << debt << endl;
}

int interest(int debt, double interest_rate,int n)
{

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

C++: #include <stdio.h>
int main(void) {
	int a,c,i;
	int b;
	scanf_s("%d", &a);
	b = 100000;
	for (i = 0; i < a; i++) {
		b = b * 1.05;
	}
	c = b % 10000;
	if (c!=0) {
		b = b + 10000-c;
	}
	printf("%d", b);
	return 0;
}

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

int main()
{
    int n;
    cin >> n;
    int loan = 100000;
    for(int i=0; i<n; i++){
        loan = loan * 1.05;
    }

    loan = loan/10000;
    loan = loan * 10000;
    loan = loan + 10000;
    
    cout <<loan<<endl;
    
    return 0;
}

C++: #include<iostream>

using namespace std;

int main(void){
	long money = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		money *= 1.05;
		if(money / 100 % 10) money = (int)money/1000*1000 + 1000;
	}
	cout << money << endl;
	
	return 0;
}

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

using namespace std;
int main() {
  int n;
  double money = 100000;
  cin >> n;
  for (int i = 0; i < n; i++) {
    money += money * 0.05;
  }
  cout << 1000 * ceil(money / 1000) << endl;
  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    unsigned long long debt = 100000;
    int n;
    
    for (int i = 0; i < n; ++i) {
        debt *= 1.05;
        debt -= (debt % 1000) - 1000;
    }
    cout << debt << endl;
    
    return 0;
}

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

using namespace std;

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

	for (int i = 0; i < n; i++) {
		money *= 1.05;
		if (money % 1000 == 0) {
			continue;
		}
		money += 1000 - money % 1000;
	}

	cout << money << endl;

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

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

C++: #define _USE_MATH_DEFINES
#include <iostream> 
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int n, r;
	int d = 100000;
	cin >> n;
	for(int i = 0; i < n; i++){
		r = d*1.05;
		r = (r + 999) / 1000 * 1000;
		/*
		if(r%1000!=0){
			while(r%1000!=0){
			r = r+1;
			}
		}
		*/
		d = r;
	}
	cout << d << endl;
	return 0;
}

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

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

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

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

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