#include <iostream>
using namespace std;

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