#include <cstdio>

using namespace std;

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