#include <iostream>
#include <cmath>

using namespace std;

int main()
{
	int n;
	int money = 100000;
	
	scanf("%d", &n);
	for(int i=0 ; i<n ; ++i){
		money += (int)ceil(money * 0.05 / 1000.0) * 1000;
	}
	
	printf("%d\n", money);
	return 0;
}