#include<iostream>

int n,money = 100000;

void OneWeek(int &a){
	a += a*0.05;
	if(a%1000 != 0){
		a -= a%1000;
		a += 1000;
	}
}

int main(){
	std::cin >> n;
	for(int i=0; i<n; i++)
		OneWeek(money);
	std::cout << money << std::endl;
	return 0;
}