#include <iostream>

int update_money(int m) {
    int tmp = (int) (((double) m) * 1.05);
    double floating = (((double) tmp) / 1000.0) - (tmp / 1000);
    if (floating > 0) {
        tmp = ((int) (((double) tmp) / 1000) ) * 1000 + 1000;
    } else {
        tmp = ((int) ((double) tmp) / 1000) * 1000;
    }
    return tmp;
}

int main(void) {
    int money = 100000;
    int n;
    std::cin >> n;

    for (int i=0; i<n; i++) {
        money = update_money(money);
    }
    std::cout << money << std::endl;

    return 0;
}

