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

void main(){
    double money = 100000;
    while(true){
        char[] buf;
        stdin.readln(buf);
        double x = buf.chomp().to!double();
        if(0 <= x && x <= 100){
            for(int i = 0;i < x;i++){
                money *= 1.05;
                if(money - (money/1000).to!int() * 1000 != 0){
                    money = ((money/1000 + 1).to!int())*1000;
                }
            }
            break;
        }
    }
    writeln(money.to!int());
}