import std.stdio,std.string,std.conv;
void main(){
	auto debt = 10_0000;
	auto week = to!int( readln().chomp() ) ;
	for( ; 0<week ; week-- ){
		debt *= 1.05;
		debt += (debt%1000)?1000-debt%1000:0;
	}
	writeln(debt);
}