#include <cstdio>

const int DEBT = 100000;

int main(int argc, char *argv[]) {
	int week;
	double sumDebt = static_cast<double>(DEBT);
	fscanf(stdin, "%d", &week);
	
	for (int i = 0; i < week; i++) {
		sumDebt += sumDebt * 0.05;
		sumDebt = static_cast<int>(sumDebt);
		int hasu = static_cast<int>(sumDebt) % 1000;
		if (hasu > 0) {
			sumDebt = sumDebt - hasu + 1000;
		}
		//printf("%d week is %.3f\n", i, sumDebt);
	}
	printf("%d\n", static_cast<int>(sumDebt));
	return 0;
}