#include <iostream>
using namespace std;

unsigned long debt(int n) {
	unsigned long tmp;
	if(n == 0) return 100000;
	
	tmp = debt(n - 1) * 1.05;
	if(tmp % 1000 != 0)
		tmp = (tmp / 1000 + 1) * 1000;
	return tmp;
}

int main(void)
{
	int n;
	cin >> n;
	cout << debt(n) << endl;
	return 0;
}