#include <iostream>
#include <math.h>
using namespace std;

int main()
{
	int n;
	cin >> n;
	double money = 100000.0;
	for (int i = 0; i < n; i++) {
		money = money * 1.05;
		money = ceil(money / 1000) * 1000;
	}
	cout << money;
    return 0;
}