#include <iostream>
using namespace std;


long long countdebt(long long bj, int n) {
	if (n == 0)
		return bj;
	else
		countdebt(bj + (((bj / 20) % 1000 == 0) ? (bj / 20) : (((bj / 20) / 1000ll + 1ll) * 1000ll)),n-1);
}

int main() {
	int n = 0;
	cin >> n;
	cout << countdebt(100000, n) << endl;
	return 0;
}
