#include<iostream>
using namespace std;

int main()
{
	int n,x,e = 100000;
	cin >> n;

	for(int i=0;i<n;++i){
		e *= 1.05;
		x = e % 1000;

		if(x != 0){
			e += (1000-x);
		}
	}

	cout << e << endl;

	return 0;
}