#include<stdio.h>
int main(void)
{
	int n;
	int i;
	int s;
	s=100000;

	while(scanf("%d",&n)!=EOF){
		for(i=0;i<n;i++){
			s=s*1.05;
			if(s%1000!=0){
				s=s-s%1000;
				s=s+1000;
			}
		}
		printf("%d\n",s);
	}
	return 0;
}