import std.stdio, std.string, std.conv, std.math;
void main() {
	int n = readln.chomp.to!int;
	long debt = 100000;
	foreach(i;0..n) debt = ((((debt + (debt*0.05)) / 1000.0).ceil) * 1000).to!long;
	debt.writeln;
}