#include <iostream>

using namespace std;

int main(){

	int n;
	cin >> n;
	int debt = 100000;
	for(int i = 0; i < n; i++){
		debt += debt/20;
	}
	int lower = debt % 10000;
	debt -= lower;
	if(lower >= 5000)
		debt += 10000;

	cout << debt << endl;

	return 0;
}