#include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>

using namespace std;

int main()
{
	int debt = 100000;
	int n;
	scanf("%d", &n);
	for (int i = 0; i < n; ++i)
	{
		debt += (int)(debt*0.05);
		if (debt % 1000 != 0)
			debt = debt/1000*1000+1000;
	}
	printf("%d\n", debt);
}