#include<iostream>

using namespace std;


int search(int lim,int money)
{
	money=money*1.05;
	
	if(money%1000>0)
	{
		money/=1000;
		money*=1000;
		money+=1000;
//		cout << "in " << money << endl;
	}
	if(lim==1)
		return money;
	
	
	search(lim-1,money);
}

int main()
{
	int n;
	
	cin >> n ;
	
	int ans = search(n,100000);
	
	cout << ans << endl;
}