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

int main(){
	double money = 100000;
	string str;
	int n;
	
	while(1){
		getline( cin, str );
		if( str.size()==0 )	break;
		sscanf(str.c_str(), "%d", &n);
		for( int i=0; i<n; i++ ){
			money = (double)money * 1.05;
			int up = money / 1000;
			if( (int)(money - up) > 0 ){
				money = (up+1)*1000;
			}else{
				money = up * 1000;
			}
		}
		int m = (int)money;
		cout << m << endl;
	}
	
	return 0;
}