#include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;

int main(){
    int n;
    ll total=100000;
    cin >> n;
    rep(i,n){
        total+=total*0.05;
        if(total%1000>0) total+=1000-total%1000;
    }
    cout << total << endl;
    return 0;
}

