#include <iostream>

using namespace std;

int calcDebtByWeek(int);

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

	return 0;
}

int calcDebtByWeek(int n){
	int currentDebt = (int)1e5;

	while(n --){
		currentDebt = int(currentDebt * 1.05);

		if(currentDebt % 1000) {currentDebt /= 1000; currentDebt ++; currentDebt *= 1000; }
	}	
	return currentDebt;
}