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 <bits/stdc++.h>

using namespace std;

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

	for (int i = 0; i < n; ++i) {
		m *= 1.05;
		if (m % 1000) {
			m += 1000 - m % 1000;
		}
	}
	cout << m << endl;
}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  int n,ten=100000,ten2;
  cin>>n;
  rep(i,n){
    ten+=ten/20;
    ten2=ten/1000*1000;
    if(ten!=ten2){
      ten2+=1000;
      ten=ten2;
    }
  }
  cout<<ten<<endl;
}

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

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

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

using namespace std;

int main()
{
	unsigned int n;
	
	cin >> n;
	
	double a = 100000;
	for (int i = 0; i < n; i++)
	{
		a *= 1.05;
		a /= 1000;
		a = ceil(a);
		a *= 1000;
	}
	cout << (int)a << endl;
	
	return 0;
}

C++: #include<iostream>
#include<cmath>
int main()
{
  int n;
  std::cin>>n;
  int i;
  int sum=100;
  for(i=0;i<n;i++)
    {
      sum+=std::ceil(sum*0.05);
    }
  std::cout<<sum*1000<<std::endl;

  return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a;
   float b = 100000.0f;
   std::cin >> a;
   
   if(a == 0) std::cout << b << std::endl;
   
   else if(a <= 100 && a >= 0){
       for(int i = 0; i < a; i++){
           b *= 1.05f;
           b /= 1000;
           double c = ceil(b);
           b = c * 1000;
       }
       std::cout << b << std::endl;
   }
}

C++: 
#include<iostream>
#include<string>
using namespace std;
int main(){
    long long a=100000;
    int n;
    cin>>n;
    for(int i=0;i<n;i++){
        a*=1.05;
        if(a%1000==0)
            a-=1000;
        a/=1000;
        a*=1000;
        a+=1000;
    }
    cout<<a<<endl;
    return 0;
}

C++: #include <stdio.h>

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

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

int main(){
 long long int Debt = 100000;
 int n;

 cin >> n;

 for (int i=0; i<n; i++) {
   Debt = Debt * 1.05;
   if(Debt % 10000 > 0) Debt = Debt - (Debt % 10000) + 10000;
  }

 cout << n << endl;

 return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
long i,n,t=100;
cin>>n;
for(i=0;i<n;i++)t=ceil(t*1.05);
cout<<t*1000<<endl;
return 0;
}

C++: #include <stdio.h>

int main(){
    long debt = 100;
    int n;
    int i;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        debt = (long)(debt*1.05+0.99);
    }
    printf("%ld\n",debt*1000);
}

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 <cstdio>

using namespace std;

long long roundup(long long *x){
  (*x) += 999;
  (*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>
using namespace std;

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

C++: #include <iostream>
using namespace std;
int main(){
    int a=100000,b=0,t=0;
    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<<a<<endl;
    //}
}

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

#define INPUT_FROM_FILE (0)
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif
	int n = 0;
	int debt = 100000;

	std::cin >> n;
	
	for(int i = 0; i < n; i++){
		debt = int(debt * 1.05);
		debt = int(ceil(debt / 1000.0)) * 1000;
	}
	std::cout << debt << std::endl;
	return 0;
}

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

typedef long long ll;

double 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 << (ll)start << endl;
    
    return(0);
}

C++: #include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{   
    int a;
    int x = 100;
    scanf("%d", &a);
    for (; a > 0; a--) {
        x = ceil((float)x * 1.05);
    }
    printf("%d\n", x * 1000);
    return 0;
}

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

int main(){
	int week,a,b,ans;
	cin>>week;
	a=100000*0.05;
	b=week+1;
	a*=b;
	ans=100000+a;
	ans/=10000;
	ans*=10000;
	ans+=1000;
	cout<<ans<<endl;
}

C++: #include <iostream>

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

C++: #include <stdio.h>

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

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

	return 0;
}

C++: 
/*
 * main.cpp
 *
 *  Created on: 2011/04/08
 *      Author: satoki
 *      4:50 ~ 5:01
 */
#include <iostream>
#include <string.h>
using namespace std;

int iN;

bool input() {
  scanf("%d", &iN);
  return true;
}

int manage() {
  int k = 100;
  int m;
  int i;
  for (i = 0; i < iN; i++) {
    m = k * 5;
    if (m % 100 != 0) m += 100;
    m /= 100;
    k += m;
  }
  return k;
}

int main() {
  input();
  printf("%d000\n", manage());
  return 0;
}

C++: #include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <cctype>
#include <iostream>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
int size(string x){
	string::size_type size=x.size();
	return size;
}
#define fu(l,k) for(int i=l;i<k;i++)
#define fd(l,k) for(int i=l;i>k;i--)
#define fi first
#define se second
typedef  vector<string> vs;
typedef  vector<int> vi;
double pi(){
	return M_PI;
}
typedef set<int> set_i;
typedef set<string> set_s;
int main(){
	int n;
	double ss=100000;
	cin>>n;
	fu(0,n){
		ss=ss*1.05;
		if((int)ss%1000!=0) ss=(int)(ss/1000)*1000+1000;
	}
	cout<<ss<<endl;
}