#include<cstdio>
int main()
{
	int n;
	scanf("%d", &n);
	int t = 100000;
	for(int i = 1; i <= n; i++)
	{
		int in = t * 0.05;
		if(in % 1000) in = (in / 1000 + 1) * 1000;
		t += in;
	}
	printf("%d", t);
	return 0;
}