#include <cstdio>

int Solve(int n){
	int c = 100000;
	int self;
	for(int i = 0;i < n;i++){
		c *= 1.05;
		self = c % 1000;
		if(self > 0){
			c -= self;
			c += 1000;
		}
	}
	return c;
}

int main(){
	int n;
	while(scanf("%d",&n) != EOF){
		printf("%d\n",Solve(n));
	}
	return 0;
}