#include <iostream>
using namespace std;

int main()
{
    int a;
    int debt=100000;
    cin >> a;
    for (int i=0; i<a; i++)
    {
	debt+=debt/20;
	debt=(debt+999)/1000*1000;
    }
    cout << debt << endl;
    return 0;
}