#include <iostream>
using namespace std;

int main() {
	int d = 100000; int n; cin >> n;
	for (int i = 0; i < n; i++) {
		d *= 1.05; if (d % 1000 != 0) d += (1000 - (d % 1000));
	}
	cout << d << endl;
	return 0;
}
