#include<iostream>
using namespace std;

int main(){
	double money = 100000;
	int n;
	cin >> n;
	for( int i=0; i<n; i++ ){
		money = money * 1.05;
		int up = (int)(money / 1000.0);
		if( (int)money%1000 > 0 ){
			money = (up+1)*1000.0;
		}else{
			money = up * 1000.0;
		}
	}
	cout << (int)money << endl;
	return 0;
}