#include <iostream>
#include <cmath>
using namespace std;
inline int ceil(double x, double base) {
    return ceil(x / base) * base;
}
int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n; cin >> n;
    double ret = 100000;
    while (n--) {
        ret = ceil(ret * 1.05, 1000);
    }
    cout << ret << endl;

    return 0;
}