//0007 Debt Hell
// éÉZñÅ¢éFlÍàÉ¢ÁÄÅàÆÒ©ç10~ØèÄµÜÁ½
//»ÌÆÒÍT²ÆÉqª5%t«A»ÌÛ1000¢ÍØèã°éÆ¢¤
//nTÔãÌÔÏzðßæ@È¨An<=100Æ·é

#include<iostream>
using namespace std;

int main(void)
{
	int debt;
	int n;
	int i;

	cin >> n;
	debt = 100000;	//ÅÍ10~
	for(i = 0; i < n; i++)
	{
		//T²ÆÉ1.05{
		debt += debt/20;
		//1000~¢Ì[ª é©
		int fraction = debt%1000;
		if(fraction)
			debt = debt-fraction + 1000;
	}
	cout << debt << endl;

	return 0;
}