#include<iostream>
using namespace std;
int main(){
	int week,kiri,kane=100000,i;
	cin>>week;
	for(i=0;i<week;i++){
		kane=(double)kane*1.05;
		kane=kane+999;
		kiri=kane%1000;
		kane=kane-kiri;
	}
	cout<<kane<<endl;
	return 0;
}

