#include <iostream>
using namespace std;

int main() {
    int n;
    while (cin >> n) {
        long long debt = 100000;
        for (int i = 0; i < n; i++) {
            debt += debt / 20;
            debt += (debt % 1000 == 0) ? 0 : 1000 - (debt % 1000);
        }
        cout << debt << endl;
    }
}