let input = ''

process.stdin.resume()
process.stdin.setEncoding('utf8')
process.stdin.on('data', function(chunk) {
  input += chunk
})
process.stdin.on('end', function() {
  input = input.trim().split('\n')
  main()
})

function main() {
  let debt = 100000
  for (i=0; i< input[0]; i++) {
      debt = Math.ceil((debt + debt*0.05)/1000)*1000
  }
  console.log(debt)
}
