#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
typedef long long ll;

ll calcDebt(ll debt)
{
    double buff;
    buff = (double) debt;
    buff = buff * 1.05;
    buff = ceil(buff / 1000) * 1000;
    return (ll) buff;
}

int main()
{
    int n;
    ll debt = 100000;
    cin >> n;
    for(int c = 0; c < n; c++)
        debt = calcDebt(debt);
    cout << debt << endl;
    return EXIT_SUCCESS;
}