#include <iostream>
#include <algorithm>
#include <vector>
#include <functional>
#include <sstream>
#include <stdio.h>
using namespace std;

// Debt Hell(0007)
int main()
{
	int n, ans = 100000;
	cin >> n;
	for (int i = 0; i < n; ++i) {
		int r = ans * 0.05;
		double rr = ans * 0.05;

		if (static_cast<double>(r) != rr || r % 1000 != 0)
			r = (r / 1000) * 1000 + 1000;
		ans += r;
	}
	cout << ans << endl;
	return 0;
}