#include <iostream>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <numeric>
#include <cctype>

using namespace std;

#define loop(i,a,b) for(int i=(a); i<(int)(b); i++)
#define rep(i,b) loop(i,0,b)
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define pb push_back
#define mp make_pair

typedef unsigned uint;
typedef long long ll;
typedef unsigned long ulong;
typedef unsigned long long ull;

typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vvb;

typedef double Real;
const Real eps = 1e-9;
const Real inf = 1e20;

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

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