#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<double, int>;

int main() {
    int n;
    cin >> n;
    int debt = 100000;
    while(n--) {
        debt = debt * 105 / 100;
        debt = (debt+999) / 1000 * 1000;
    }
    cout << debt << endl;
}
