var N,
    RISHI = 0.05,
    MIN = 1000,
    money = 100000;
    
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on("data",function(chunk){
    N = Number(chunk);
    for (var i = 0; i < N; i++) {
    money = Math.ceil((money + money * RISHI) / MIN) * MIN;    
    }
    console.log(money)
})