#include <iostream>
using namespace std;

int main(int argc, const char * argv[])
{
    int a, n, debt = 100000;
    double rate = 0.05;
    
    cin >> n;
    for (int i = 0; i < n; i++) {
        debt *= (1.00 + rate);
        a = debt % 1000;
        if (a != 0){
            debt = debt / 1000 * 1000 + 1000;
        }
    }
    cout << debt << endl;
    
    return 0;
}