#include <iostream>
using namespace std;

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