#include <iostream>
using namespace std;

int main(){
    int n;
    int result = 100000;

    cin >> n;

    for(int i=1; i<=n; i++){
        result *= 1.05;
        result = (result + 999) / 1000 * 1000;
    }

    cout << result << endl;

    return 0;

}