#include <iostream>
using namespace std;


int main() {

//変数の宣言

	int i,j,n,debt;
	
	cin >> n;
	debt = 100000;
	
	for(j=0;j<n;j++){
		debt = debt * 1.05;
		i = 0;
		while(1){
			if (((100000+i*1000)<debt)&&((100000+(i+1)*1000)>=debt)){
				debt = (100000+(i+1)*1000);
				break;
			}
			i++;
		}
	}
	
	cout << debt <<endl;
		
	return 0;
}