#include<stdio.h>

int main(void){

	int ans,week,i,debt;
	
	debt=100000;				//ØàÌúl10
	scanf("%d",&week);

	ans=debt+debt*0.05;		//úqvZ
	
	for(i=1;i<week;i++){
		
		ans=ans+ans*0.05;
		
		if(ans%1000!=0){		//ç~¢Øèã°
			ans=ans-(ans%1000)+1000;
		}
	}
	printf("%d\n",ans);
}