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 * 0.05;
		debt = (((debt / 1000.0).ceil) * 1000).to!long;
	}
	debt.writeln;
}