#include <stdio.h>

int main(){
	int money = 100000;
	int n;

	while(scanf("%d", &n) != EOF){
	for(int i=0 ; i<n ; i++){
		money += 100000.0 * 0.05;
		money += 1000 - (money%1000);
	}
	printf("%d\n", money);
}
	return 0;
} 