#define _USE_MATH_DEFINES
#include <iostream> 
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int n, r;
	int d = 100000;
	cin >> n;
	for(int i = 0; i < n; i++){
		r = d*1.05;
		r = (r + 999) / 1000 * 1000;
		/*
		if(r%1000!=0){
			while(r%1000!=0){
			r = r+1;
			}
		}
		*/
		d = r;
	}
	cout << d << endl;
	return 0;
}
