#include<iostream>


using namespace std;

int main(){
	int money = 100000;
	int N;
	cin >> N;
	
	for(int i=0;i<N;i++){
		money *= 1.05;
		if(money%1000 == 0) continue;
		
		money = (((int)money/1000)+1)*1000;
	}
	cout << money << endl;
	
	return 0;
}