#include<iostream>
#include<math.h>

using namespace std;

int main (){
    int i, n;
    int debt = 100000;
    cin >> n;

    for(i=0; i<n; i++){
        debt = ceil( debt * 1.05 / 1000) * 1000;
    }

    cout << debt << endl;
}