#include <iostream>
using namespace std;

int n;
int syakin = 100000;

void kiri()
{
	if(syakin%1000 > 0){
		syakin = syakin/1000*1000+1000;
	}
}

int risi(int n)
{
	if(n == 0){
		return syakin;
	}else{
		syakin = static_cast<int>(static_cast<double>(syakin*1.05));
		kiri();
		risi(n-1);
	}
}

int main()
{
	cin >> n;
	cout << risi(n) << endl;
	return 0;
}