#include<iostream>

using namespace std;

int main()
{
	int week,money = 100000;
	cin >> week;

	for(int ix = 0;ix != week;++ix){
		money *= 1.05;
		money += money%1000!=0 ? 1000: 0;
		money -= money%1000;
	}
	cout <<money<<endl;

	return 0;	
}