#include<iostream>
using namespace std;

int main(void){
	int n = 0;
	cin >> n;

	const double inter = 0.05;
	double debt = 100000.0;
	int a = 0;

	for(int i = 0;i < n;i++){
		debt += debt * inter;
		a = (int)debt%1000;
		if(a != 0){
			debt += 1000.0 - (double)a;
		}
	}

	cout << (int)debt << endl;

	return 0;
}