#include <iostream>

int main() {
	int N;
	std::cin >> N;

	double debt = 100000.0;
	for( int i=0; i<N; ++i ) {
		debt *= 1.05;
		debt = ( static_cast<int>( debt ) / 1000
			+ ((static_cast<int>( debt )%1000)>0?1:0)) * 1000;
	}

	std::cout << static_cast<int>( debt ) << std::endl;
}