#include <iostream>

using namespace std;

int debt = 100000;

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