#include<stdio.h>

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