#include<iostream>
using namespace std;

int main()
{
	int money=100000;
	int n,tmp;
	cin>>n;
	for(int i=0;i<n;i++){
		money*=1.05;
		tmp=money%1000;
		if(tmp!=0){
			money-=tmp;
			money+=1000;
		}
	}
	cout<<money<<endl;
	return 0;
}