#include <iostream>

using namespace std;

int main()
{
    int a = 100000;

    int n;
    cin >> n;

    while(n--){
        a = int(a * 1.05);
        if( a % 1000 != 0)
            a  = a - (a % 1000) + 1000;
    }
    cout << a << endl;
    return 0;
}