#include <iostream>

using namespace std;

int main(){
	unsigned long long MONAY=100000;
	int n;

	cin>>n;

	for(n=n;n>0;n--){MONAY = MONAY*1.05;
			 MONAY=((MONAY+999)/1000)*1000;}

	cout<<MONAY<<endl;
	cin>>n;
return 0;
}