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>

using namespace std;


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

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

	printf("%d\n",debt);

    return 0;
}

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

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

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

C++: #include <stdio.h>

int main(void)
{
	int money = 100000;
	int week;
	
	scanf("%d", &week);
	
	for (int i = 0; i < week; i++){
		money += money * 0.05;
		money = (money + 999) / 1000 * 1000;
	}
	
	printf("%d\n", money);
	
	return (0);
}

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

 return 0; 
}

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

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

C++: #include <math.h>
#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <string>

#define YES "YES"
#define NO "NO"
#define space ' '

using namespace std;

void func();

int main(void)
{
	
	func();

	return 0;
}


void func()
{
	int n;
	double debt;

	debt = 100000;

	cin >> n;
	while (n-- > 0)
	{
		debt = debt * 1.05;

		if ((int)debt%1000 > 0 || debt - (int)debt > 0)
		{
			debt = (int)debt/1000;
			debt = debt*1000+1000;
		}


		cout << debt << endl;
	}
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n;
	double debt = 100.000;
	cin >> n;
	for(int i=0;i<n;i++){
		debt *= 1.05;
		debt = (int) (debt + 0.999);
	}
	
	debt *= 1000;
	cout << debt << endl;
	
	return 0;
}

C++: #include <iostream>

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

C++: #include <iostream>

using namespace std;

typedef long long ll;

int main() {
	int n;
	cin >> n;
	ll c = 100000;
	while (n>0) {
		ll add = c*5/100;
		int i = add%10;
		int j = (add-i)%100;
		int k = (add-i-j)%1000;
		if ((add%1000)!=0) add = add-i-j-k+1000;
		c += add;
		n--;
	}
	cout << c << endl;
	return 0;
}

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

int main(){
	int n;
	int d=100000;
	do{
	cin >> n;
	}while(n>100);
	
	for(int i=n;i>0;i--){
		d += d*0.05;
		if(d % 1000 != 0){
			d += 1000;
			d -= d%1000;
		}
	}
	cout << d <<endl;
}

C++: #include <iostream>

#define N (1000)

int debt(const int amount, const int weeks)
{
    int ret;
    int fraction; /* 1000円未満額の端数 */
    
    ret = amount;
    for (int i = 0; i < weeks; i++){
        // 利子計算
        ret *= 1.05;
    }
    
    fraction = ret % N;
    
    ret /= N;  // 切り捨てて
    if (fraction != 0){
        // 端数があるなら
        // 切り上げる
        ret++;
    }
    ret *= N;
    
    return ret;
}

int main()
{
    int n;
    
    std::cin >> n;
    
    std::cout << debt(100000, n) << std::endl;
    
    return 0;
}

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;
	}
	kane = ceil(kane);
	printf("%d0000\n",(int)kane);
	return 0;
}

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

int main()
{
	double thous = 100;
	int debt;
	int n;
	
	cin >> n;
	for (int i = 0; i < n; i++) {
		thous = ceil(thous * interest);
	}
	debt = thous * 1000;
	cout << debt << "\n";
	return 0;
}

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

typedef unsigned long long ull;
int main(void){
  ull c = 100000;
  int n; cin >> n;
  while(n--){
    c *= 1.05;
    if(c%1000 > 0){
      c = c - c%1000 + 1000;
    }
  }
  cout << c << endl;
  return 0;
}

C++: #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <queue>

using namespace std;
using ull = unsigned long long;
using ll = long long;
using lli = long long int;
using ld = long double;
using pa = pair<int,int>;
#define SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define GRESORT(v) sort(v.begin(),v.end(),greater<int>())
#define REVERSE(v) reverse(v.begin(),v.end())
#define overlap(v) v.erase(unique(v.begin(),v.end()),v.end())
#define debug(x) cout << #x << ": " << x << endl
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,n) FOR(i,0,n)
#define RFOR(i,a,b) for(int i = (b-1); i >= a; i--)
#define rrep(i,n) RFOR(i,0,n)
#define INF 999999999

//4??????
//int dy[]={0, 0, 1, -1};
//int dx[]={1, -1, 0, 0};

//8??????
//int dy[]={0,0,1,-1,1,1,-1,-1};
//int dx[]={1,-1,0,0,1,-1,1,-1};

ll mod = (ll)1e9+7;

void solve(){
    ll n; cin >> n;
    ll ans = 100000;
    rep(i,n){
        ans *= 1.05;
        if(ans % 1000){
            ans -= ans % 1000;
            ans += 1000;
        }
    }
    cout << ans << endl;
}

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

    solve();

    return 0;
}

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

int main(void){
    int n;
    double ans;
    cin >> n;
    ans=100*pow(1.05,n);
    if((ans-int(ans))>0.0) ans++;
    ans*=1000;
    ans = int(ans);
    cout << ans << endl;
    return 0;
}

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

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

    return 0;
}

C++: //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007
#include <iostream>
using namespace std;
int main() {
	cin.tie(0); ios::sync_with_stdio(false);
	int n; cin >> n;
	int debt = 100000;
	for (int i = 0; i < n;i++) {
		debt *= 1.05;
		if (debt % 1000 != 0) {
			debt = (debt / 1000) * 1000  + 1000;
		}
	}
	cout << debt << endl;
}

C++: #include <stdio.h>

int main(void){
	float debt = 100;
	int buf;
	int n;
	
	int i;
	
	scanf("%d",&n);
	
	for(i = 0;i < n;i++){
		debt = debt*1.050;
		buf = (int)debt;
		if(debt - buf >= 0.001){
			buf++;
			debt = (float)buf;
		}
	}
	
	printf("%d000\n",(int)debt);
	
	return 0;
}

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

int round(double num);

int main(){
	int n=100;
	int w;
	cin >> w;

	for(int i=0; i<w; i++){
		n = round(n*1.05);
	}

	cout << n << endl;

	return 0;
}

int round(double n){
	int m=n;

	if(n>m) return m+1;
	if(n==m) return m;
}