#include<iostream>
#include<cmath>
using namespace std;

void debtAfterWeeks(int &debt, int interest, int &n){
	float fdebt,quotient;
	if(n==0){
		return;
	}else{
		fdebt=static_cast<float>(debt)*(1.0+static_cast<float>(interest)/100.0);
		debt=static_cast<int>(ceil(fdebt));
		quotient = debt % 1000;
		if(quotient != 0){
			debt = debt + 1000.0 - quotient;
		}
		--n;
		debtAfterWeeks(debt, 5, n);
	}
}

int main(){
	int n;
	int debt=100000;
	cin>>n;
	debtAfterWeeks(debt, 5, n);
	cout<<debt<<endl;
	return 0;
}