#include <iostream>
using namespace std;

int main(){
int n,b=100000,c,d,tmp;
double f=100000;
	cin>>n;
	for(int i=0;i<n;i++){
		f*=0.05;
		tmp=f;
		b=b+tmp;
		d=b;
		b/=1000;
		b*=1000;
		if(d-b>0)b+=1000;
		f=b;
	}
	cout<<b<<endl;
	return 0;
}