#include <iostream>

#define DEFAULT_DEBT 1e5

using namespace std;

int calculate(int);

int main(void){
	int n; cin >> n;
	cout << calculate(n) << endl;

	return 0;
}

int calculate(int week){
	double debt = DEFAULT_DEBT;

	while(week --){
		debt *= 1.05;
		debt = ((debt / 1e3 > (int)(debt / 1e3)) ? 1e3:0) + (int)(debt / 1e3) * 1e3;
	}
	return (int)debt;
}