#include<cstdio>
#include<cmath>

int Money =100000;
int n;
int main()
{
	scanf("%d",&n);
	for(int i =0;i<n;i++)
	{
		Money*=1.05;
	 	int amari = Money%1000;
		if(amari!=0)Money=Money-amari+1000;
	}
	printf("%d\n",Money);
	return 0;
}