#include<iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;

    int d = 100000;
    int r = 0;

    for(int i = 0; i < n; i++)
    {
        r = d * 0.05;
        if(r % 1000 > 0)
            r = r + (1000 - r % 1000);
        d = d + r;
    }

    cout << d << endl;
} 