#include<stdio.h>
#include<stdlib.h>
#include<math.h>

int main(){

	int a = 100000;
	int b = 0;
	float c = 0.05;
	int n = 0;

	scanf("%d",&n);

	if (n > 100)
	{
		n = 100;
	}

	b = a * c;

	for (int i = 0; i < n; i++)
	{
		a += b;
	}

	a = int(a / 1000) * 1000;

	printf("%d\n",a);

	return 0;
}