#include<iostream>
#include<string>

int Kiriage(double a)
{
	a /= 1000;

	int aI = a;

	if(a>aI)
	{
		aI += 1;
	}
	return aI*1000;
}

int main()
{
	int debt =100000;//ここ変更OK 最初の借入額

	int n;

	std::cin >> n;

	for( int i=0; i<n; ++i )
	{
		debt *= 1.05;

		debt = Kiriage(debt);
	}

	std::cout << debt << '\n';

}