#include<iostream>
using namespace std;
int main(){

	int n;
	int loan;

	cin >> n;
	loan;

	loan = 100000;

	for(int i=0; i<n; i++){
		loan = loan+loan*0.05;
		loan = loan+999;
		loan = loan/1000*1000;
	}

	cout << loan << endl;
	
	return 0;
}