#include <iostream>

using namespace std;

void solve()
{
	int n;
	cin >> n;
	unsigned long long debt = 100000;
	for(int i = 0; i < n; ++i)
	{
		debt *= 1.05;
		int less_than_thousand = debt % 1000;
		if(less_than_thousand > 0)
		{
			debt += 1000 - less_than_thousand;
		}
	}
	cout << debt << endl;
}

int main()
{
	solve();
	return(0);
}