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

int main(){
	int n;
	cin >> n;
	int cur = 100000;
	while(n--){
		cur = cur + cur * 0.05;
		if(cur%1000 != 0){
			cur += 1000-(cur%1000);
		}
	}
	cout << cur << endl;
}