#include <stdlib.h>
#include <string>
#include <vector>
#include <algorithm>
#include <iostream>



using namespace std;

int main()
{
	const int BUFF_SIZE = 100;
	char buff[BUFF_SIZE];
	int y = 100000;

	string s;
	getline(cin, s);
	
	long n;
	sscanf(s.c_str(), "%ld", &n);
	
//	printf("%d\n", n);
	
	for (int i = 0; i < n; i++)
	{
		double z = y;
		z *= 1.05;
		y = (int)z;
		
		sprintf(buff, "%d", y);
		
	
		string t = buff;
		string u = t.substr(t.length() - 3);
		int aa;
		sscanf(u.c_str(), "%ld", &aa);
		
		y /= 1000;
		y *= 1000;
		if (0 < aa)
		{
			y += 1000;
		}
	}
	
	printf("%d\n", y);

	return 0;
}