#include <iostream>

int main(int argc, const char * argv[]) {
    using namespace std;
    int n = 100000, t ;
    cin >> t;
    for (int i=1;i<=t;i++) {
        n *= 1.05;
        if (n%1000!=0)
            n += 1000-(n%1000);
    }
    cout << (int)n << "\n";
    return 0;
}

