var sample_input = require('fs').readFileSync('/dev/stdin', 'utf8');
var n = parseInt(sample_input.split("\n")[0]);
var to_pay = 100000;
for(i=0;i<n;i++) {
  to_pay = Math.ceil(to_pay*1.05/1000)*1000;
}
console.log(to_pay);