#include<iostream>
#include<algorithm>
#include<iomanip>
using namespace std;

int main(){
    int n;
    cin >> n;
    int ans;
    double now = 100000;
    for(int i = 0 ; i < n ; ++i){
        now *= 1.05;
        int t = now;
        if(t == now && t % 1000 == 0){
            ans = t;
            continue;
        }
        t = t / 1000 * 1000 + 1000;
        ans = t;
        now = ans;
    }

    cout << ans << endl;

    return 0;
}
