#include <iostream>
#include <cmath>
using namespace std;

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

	scanf("%d", &n);
	for(i=0; i<n; i++){
		money = money + ceil(money * 0.05);
		if(money % 1000 != 0){
			money = money - (money % 1000) + 1000;
		}
	}

	printf("%d\n", money);

	return 0;
}