#include <iostream>
#include <math.h>
using namespace std;

void test();
int  interest(int debt, float interest_rate, int n);

int main(void)
{
	test();
	return 0;
}

void test()
{
	int debt,n;
	float interest_rate;
	debt = 100000;
	interest_rate = 1.05;
	cin >> n;

	debt = interest(debt, interest_rate, n);

	if (debt % 1000 > 0)
	{
		debt = debt - debt % 1000 + 1000;
	}
	cout << debt << endl;
}

int interest(int debt, float interest_rate,int n)
{

	if (n == 1)
		return debt * interest_rate;
	else
		return interest(debt, interest_rate, n - 1) * interest_rate;
}