#include <iostream>
using namespace std;

int main()
{
	int debt = 100000;
	int n;
	cin >> n;

	for(int i=0; i<n; ++i)
	{
		int x = debt * 1.05 + 999;
		debt = x - x%1000;
	}

	cout << debt << '\n';
}