import java.util.Scanner

object Main {
  def main(args : Array[String]) = {
    val scanner = new Scanner(System.in)
    val n = scanner.nextLine().toInt
    var amount:Double = 100000

    for(i <- 1 to n) {
      amount = amount * 1.05
      amount = (amount / 1000).ceil * 1000
    }
    println(amount.toInt)
  }
}