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

int main(){
	long n;
	cin >> n;
	n = 5;
	double money = 100000;
	for (long i = 1; i <= n; i++){
		money *= 1.05;
		if (fmod(money, 1000) != 0) money += 1000 - fmod(money, 1000);
	}
	cout << (long)money << endl;
	return 0;
}