import std.stdio;
import std.string;
import std.conv;
import std.math;

void main ()
{
	double a = 100000;
	int n = to!int(chomp(readln()));
	foreach (i; 0 .. n)
	{
		a = a * 1.05;
		if(a % 1000)
			a = a - (a % 1000) + 1000; 
	} 
	writeln(to!int(a));
}