#include <iostream>
using namespace std;

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