#include <iostream>

#define DEBT 100000

using namespace std;

int main(){
    int t, dbt=DEBT, frac;
    cin >> t;
    while(t--){
        dbt*=1.05;
        if(frac=dbt%1000){
            dbt+=1000-frac;
        }
    }
    cout << dbt << endl;
}