#include <iostream>
using namespace std;
int main(void) {
    int n,total = 100000,plus = 0;
    cin >> n;
    for (int i = 0; i < n; i++) {
        plus = 0.05 * total;
        if (plus % 1000)     plus = (plus / 1000 + 1) * 1000;
    total += plus;
    }
    cout << total << endl;
}
