#include <iostream>
using namespace std;

int main()
{
	int n=0;
	cin>>n;
	long long c = 100000;
	for ( int i=0; i<n; i++ )
	{
		c += c/20;
		c = (c+999)/1000*1000;
	}
	cout << c << endl;
	return 0;
}