#include <iostream>

using namespace std;

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

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