Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(ans)
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp+=tmp*0.05
	}
	return Round(tmp, -4)
}

func Round(f float64, places int) float64{
	shift := math.Pow(10, float64(places))
	return math.Floor(f * shift+.5)/shift
}

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

C++: //#define _GRIBCXX_DEBUG
#include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iostream>
#include <iomanip>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;


// ?????¬???????????¬??????
#pragma region MACRO
#define P(x) cout << (x) << endl
#define p(x) cout << (x)
#define PED cout << "\n"
#define rep(i,n) for(int i=0; i<(int)n; ++i)
#define REP(i,x,n) for(int i=x; i<(int)n; ++i)
#define repi(i,n) for(int i=0; i<=(int)n; ++i)
#define REPI(i,x,n) for(int i=x; i<=(int)n; ++i)
#define ILP while(true)
#define FOR(i,c) for(__typeof((c).begin())!=(c).begin(); i!=(c).end(); ++i)
#define ALL(c) (c).begin(), (c).end()
#define mp make_pair
#pragma endregion

#pragma region TYPE_DEF
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<string, string> pss;
typedef pair<string, int> psi;
typedef pair<int, string> pis;
typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<long> vl;
typedef vector<long long> vll;
typedef vector<string> vs;
#pragma endregion


// Effective std
#pragma region ESTD
template<typename C, typename T>
constexpr int count(C& c, T t) { return count(ALL(c), t); }
template<typename C, typename F>
constexpr int count_if(C& c, F f) { return count_if(ALL(c), f); }
template<typename C, typename T, typename U>
constexpr void replace(C& c, T t, U u) { replace(ALL(c), t, u); }
template<typename C, typename F, typename U>
constexpr void replace_if(C& c, F f, U u) { (ALL(c), f, u); }
template<typename C>
constexpr void sort(C& c) { sort(ALL(c)); }
template<typename C, typename Pred>
constexpr void sort(C& c, Pred p) { sort(ALL(c), p); }
template<typename C>
constexpr void reverse(C& c) { reverse(ALL(c)); }
#pragma endregion


// ?´???°
#pragma region PRIME
bool is_prime(unsigned n) {
  switch(n) {
    case 0:
    case 1: return false;
    case 2: return true;
  }
  if (n%2==0) return false;
  for (unsigned i=3; i*i<=n; i+=2)
    if (n%i==0) return false;
  return true;
}
#pragma endregion


// ??§??????/?°?????????????
#pragma region TRANSFORM
void mutal_tr(string &s) {
  for(int i=s.size(); i--;) {
    if(islower(s[i])) s[i] = toupper(s[i]);
    else if (isupper(s[i])) s[i] = tolower(s[i]);
  }
}
void to_upper(string &s) { for(int i=s.size(); i--;) s[i] = toupper(s[i]); }
void to_lower(string &s) { for(int i=s.size(); i--;) s[i] = tolower(s[i]); }
#pragma endregion


// ??????
#pragma region SET
template<class T>
set<T> intersection(const set<T>& sa, const set<T>& sb) {
  set<T> ret;
  for(T a : sa) if(sb.find(a) != sb.end()) ret.insert(a);
  return ret;
}
#pragma endregion

// Union Find
#pragma region UF
struct UnionFind {
  vector<int> data;
  UnionFind(int size) : data(size, -1) {}
  bool union_set(int x, int y) {
    x = root(x); y = root(y);
    if(x!=y) {
      if(data[y] < data[x]) swap(x, y);
      data[x] += data[y]; data[y] = x;
    }
    return x != y;
  }
  bool find_set(int x, int y) { return root(x) == root(y); }
  int root(int x) { return data[x] < 0 ? x : data[x] = root(data[x]); }
  int size(int x) { return -data[root(x)]; }
};
#pragma endregion


// ?????°
#pragma region CONST_VAL
#define PI (2*acos(0.0))
#define EPS (1e-9)
#define MOD (int)(1e9+7)
#pragma endregion

int main()
{
    int n;
    cin >> n;
    ll ans = 100000;
    rep(i,n) {
        ans += ans*0.05;
        if(ans%1000!=0) {
            ans /= 1000;
            ans *= 1000;
            ans += 1000;
        }

    }
    P(ans);
    return 0;
}

C++: //0007
#include <bits/stdc++.h>
using namespace std;
int money = 100000;
void up() {
    int judge = money % 10000;
    if(judge >= 1) {
        money -= judge; money += 10000;
    }
}

int main(void) {
    int n; cin >> n;
    for(int r = 0; r < n; r++) {
        money *= 1.05;
    }
    up();
    cout << money << endl;
    return(0);
}

C++: #include<iostream>

using namespace std;

int main()
{
	int n;
	int a;
	int out;
	
	cin >> n;
	for(int i = 0; i < n; i++){
		n = n * 1.05;
	}
	n = 100000 + n*1000*5;
	a = n / 10000;
	if(n % 10000 == 0){
		out = a * 10000;
	}
	else{
		out = (a+1) * 10000;
	}
	cout << out  << endl;
	cout << n << endl;
	return 0;
}

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

int main()
{
	int n;
	int cost = 100000;
	bool check = false;

	cin >> n;
	for(int i=0;i<n;i++) {
		cost *= 1.05;
		if(cost % 1000 > 0)
			check = true;
		else
			check = false;
		cost /= 1000;
		cost *= 1000;
		if(check) {
			cost += 1000;
		}
	}

	cout << cost << endl;

	return 0;
}

C++: #include <cstdio>
int main()
{
    int n; scanf("%d", &n);
    long long x = 100000;
    for (int i = 0; i < n; ++i) {
        x *= 105;
        int r = x % 100000;
        if (r > 0) { x -= r; x += 100000; }
        x /= 100;
    }
    printf("%lld\n", x);
    return 0;
}

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

C++: #include <stdio.h>

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

C++: #include <iostream>

using namespace std;

int main(){
	unsigned long long MONAY=100000;
	int n;

	cin>>n;

	for(n=n;n>0;n--){MONAY = MONAY*1.05;
			 MONAY=((MONAY+999)/1000)*1000;}

	cout<<MONAY<<endl;
	cin>>n;
return 0;
}

C++: #include <bits/stdc++.h>
//#include "bits/stdc++.h"

#define rep(i,n) for(ll (i)=0;(i)<(ll)(n);(i)++)
#define all(x) (x).begin(),(x).end()
#define MOD 1000000007LL
#define INF (1LL<<60LL)
#define int long long
typedef long long ll;

using namespace std;



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

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

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

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