#include <iostream>
#include <cmath>
using namespace std;

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