#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main(){
    int n;
    cin >> n;
    long syak = 100000;
    for(int i=0;i<n;i++){
        syak = syak * 1.05;
        int s = syak % 1000;
        if(s != 0){
            syak = syak -s + 1000;
        }
    }
    cout << syak << endl;
    return 0;
}