#include <iostream>

int main() {
	int saimu = 100000;
	static const int riritsu = 5;	/* percent */
	static const int roundUnit = 1000;

	int n;
	std::cin >> n;

	for (int i = 0; i < n; ++i) {
		saimu += saimu / 100 * riritsu;
		saimu = ((saimu + roundUnit - 1) / roundUnit) * roundUnit;
	}

	std::cout << saimu << '\n';

	return 0;
}