#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n, d = 100000;
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        d = (int)ceil(d * 1.05 / 1000) * 1000;
    }
    cout << d << endl;
    return 0;
}
