#include <iostream>
#include <iomanip>
#include <cmath>
#include <string>
#include <algorithm>

using namespace std;

int main()
{
    unsigned int n = 100000;
    int week;
    
    cin >> week;
    
    for (int i = 0; i < week; i++)
    {
        n *= 1.05;
        if (n % 1000 > 0)
        {
            n = (n / 1000 + 1) * 1000;
        }
    }
    
    cout << n << endl;
    
    return 0;
}

