var input = '';
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
    input += chunk;
});
process.stdin.on('end', function() {
    main(input)
});

function main(input){
    var n = parseInt(input.trim());
    var dept = 100000;
    for(var i = 0; i < n; i += 1){
        dept = increaseDept(dept);
    }
    console.log(dept);
}

function increaseDept(dept){
    dept *= 1.05;
    dept = Math.ceil(dept / 1000) * 1000;
    return dept;
}