#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
	int n, i, a, kinngaku, seisuu;
	double zissuu;
	
	
	cin >> n;
	
	kinngaku = 100000;
	for(i = 0; i < n; i++)
	{
		kinngaku = kinngaku * 1.05;
		
		seisuu = kinngaku / 1000;
		
		zissuu = (double)kinngaku / 1000;
		
		if(zissuu > seisuu)
		{
			seisuu = seisuu + 1;
		}
		kinngaku = seisuu * 1000;
	}
	
	cout << kinngaku << endl;
	
	return 0;	
}