#include <iostream>
using namespace std;

int main()
{
	int n;
	cin >> n;

	unsigned long long debt = 100000;
	while(n--)
	{
		debt += debt * 0.05;
		if(debt % 1000)
			debt += 1000 - debt % 1000;
	}

	cout << debt << endl;

	return 0;
}