#include <iostream>
#include <string>

using namespace std;

int n;
long debt = 100000;

int main(){
	cin >> n;
	for(n;n>0;n--){
		debt *= 1.05;
		if((debt%1000) != 0){
			debt = debt + 1000 -(debt%1000);
		}
	}
	cout << debt << endl;
	return 0;
}