
#include<iostream>
int main()
{
	double debt = 100000, add, p = 0.05;
	int n;
	std::cin >> n;
	for (int i = 0; i < n; i++)
	{
		add = (double)(int)(((debt * 0.05) / 1000) + 0.999) * 1000;
		debt += add;
	}
	std::cout << debt;
	return 0;
}