#include <iostream>

using namespace std;

int interest(int);

int main(void){
	int loan=100000,week;

	cin >> week;
	for(int i=0;i<week;i++)
		loan+=interest(loan);

	cout << loan << endl;

	return 0;
}

int interest(int loan){
	float tmp=loan*0.05;

	if(tmp>(int)tmp/1000*1000)
		tmp=((int)tmp/1000+1)*1000;

	return (int)tmp;
}