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

void main(){
    int n = stdin.readln.chomp.to!int;
    int money = 100_000;
    while(n--){
        money = cast(int)(money * 1.05);
        if(money % 1_000)
            money = money - (money % 1_000) + 1_000;
    }
    writeln(money);
}