Go: package main

import (
        "fmt"
        "math"
)

var interests [101]float64

func main() {
        var m int
        fmt.Scanf("%d", &m)
        fmt.Printf("%d\n", int(math.Ceil(interest(m)*100))*1000)
}

func interest(m int) (i float64){
        if interests[m] > 0 {
                return interests[m]
        }

        if m == 0 {
                interests[0] = 1.0
                return interests[0]
        }

        if m == 1 {
                interests[1] = 1.05
                return interests[1]
        }
        interests[m] = interest(m/2) * interest(m/2) * interest(m%2)
        return interests[m]
}

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include <cstdio>
#include <cmath>
#include <map>
using namespace std;

#define N 100000;

int main()
{
	int n;
	int a;
	a = N;
	cin >> n;
	for (int i = 0; i < n; ++i)
	{
		a *= 1.05;
	}
	cout << a / 10000 * 10000 + 10000<< endl;
}

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

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

C++: #include <iostream>

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

C++: #include <stdio.h>

int main(){
	int money = 100000;
	int n;

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

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	double debt = 100000.0;
	int n, r;
	cin >> n;
	while ( n-- > 0 ){
		debt *= 1.05;
		r = (int)debt % 1000;
		if ( r != 0 ){
			debt = debt - r + 1000;
		}
	}
	cout << debt << endl;
	
	return 0;
}

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

int main(){

	int n;
	int sum = 100000;

	cin>>n;

	for(int i=0;i<n;i++){

		sum *= 105/100.0;

		if(sum%1000>100){
			sum /= 1000;
			sum *= 1000;
			sum += 1000;
		}
	}

	cout<<sum<<endl;
	return 0;
}

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

int main()
{
  int n;
  int debt = 100000;

  scanf("%d", &n);
  for (int i = 0; i < n; i++){
    debt = debt / 100 * 105;
    if (debt % 1000 != 0){
      debt = (debt / 1000 + 1) * 1000;
    }
  }
  printf("%d\n", debt);

  return (0);
}

C++: #include<stdio.h>

int fun(long long a,int n){
	a=a/20*21;
	if(a%1000!=0){
		a=a/1000*1000+1000;
	}
	n--;
	if(n==0){
		return a;
	}
	else{
		return fun(a,n);
	}
}

signed main(){
	int n;
	long long a;
	scanf("%d",&n);
	a=fun(100000,n);
	printf("%d\n",a);
	return 0;
}

C++: // includes
#include <cstdio>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <utility>
#include <functional>
#include <cmath>
#include <climits>
#include <bitset>

// macros
#define ll long long int
#define pb push_back
#define mk make_pair
#define pq priority_queue
#define FOR(i, a, b) for(int i=(a); i<(b);++i)
#define rep(i, n) FOR(i, 0, n)

using namespace std;

//  types
typedef pair<int, int> P;
typedef pair<ll, int> Pl;
typedef pair<ll, ll> Pll;
 
// constants
const int inf = 1e9;
const ll linf = 1LL << 50;
const double EPS = 1e-10;

// solve

int main(int argc, char const* argv[])
{
  ll start = 100;
  int n;
  cin >> n;
  rep(i, n){
    start = start * 105;
    start = (start + 99) / 100;
  }
  cout << start << "000" << endl;
	return 0;
}

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

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

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

	return 0;
}

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

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

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

	cout << money << endl;
}

C++: #include <cstdio>

using namespace std;

long long roundup(long long *x){
  (*x) += 900;
  (*x) /= 1000;
  (*x) *= 1000;
}

long long addinterest(long long *x){
  (*x) *= 1.05;
  roundup(x);
}

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

  printf("%lld\n", debt);
  return 0;
}

C++: #include <iostream>
#include <algorithm>
int main()
{
  const int BASE = 100000;
  int n, debt = BASE;
  std::cin >> n;
  while (n--) {
    debt = (loan * 1.05 + 999) / 1000;
    debt *= 1000;
  }
  std::cout << debt << std::endl;
  return 0;
}

C++: #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include <functional>
#include <iomanip>
using namespace std;

#define ll long long int

#define rep(p,q) for(int i = p; i < q;i++)


int main(void) {
	int week;
	cin >> week;
	int debt = 100000;
	rep(0, week) {
		debt = debt*1.05;
		if ((int)debt % 1000 != 0) {
			debt += 1000 - debt % 1000;
		}
		
	}
	cout << debt << endl;
}

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

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

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

int main()
{
    int n = 0;                                          //n習慣
    double debt = 100000;                               //10万借金

    cin >> n;                                           //入力

    for( int i = 0; i < n; i++ )                        //n回繰り返す
    {
        debt = debt * 1.05;                             //5%増える
        if( (int)debt % 1000 != 0 )                     //1~999は切り上がる
            debt = debt - (int)debt % 1000 + 1000;
    }

    cout << debt << endl;

    return 0;
}

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



int main(void){
	

	double n, sum = 100000;
	cin >> n;

	for (int i = 0; i < n; i++){
	
		sum = sum*1.05;
		sum /= 1000;
		sum=ceil(sum);
		sum *= 1000;

	}
	sum *= 1000;
	cout << int(sum) << endl;


	
	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int n; cin >> n;

	int money = 100000;

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

	cout << money << endl;
}

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

 return 0; 
}

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

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

C++: #include <iostream>

using namespace std;

int main() {

	double money = 100000;
	int n;

	cin >> n;

	for (int i = 1; i <= n; i++) {
		//???????????????
		money *= 1.05;
		//1000??????????????°?????????
		double miman = money - ((int)(money*0.001)) * 1000.0;
		if (miman > 0) {
			money = money - miman + 1000.0;
		}
	}

	cout << (int)money << endl;

	return 0;

}

C++: #include<iostream>

using namespace std;

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

	for(int ix = 0;ix != week;++ix){
		money *= 1.05;
		money += money%1000!=0 ? 1000: 0;
		money -= 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 % 10000 < 5000)
		loan = loan / 10000 * 10000;
	else
		loan = loan / 10000 * 10000 + 10000;
	
	std::cout << loan << std::endl;
}