/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007
  */
object Main {
  def main(args: Array[String]): Unit = {
    val n = io.StdIn.readInt()
    println(calc(n, 100000))
  }

  def calc(week: Int, balance: Int): Int = {
    val Rate = BigDecimal(1.05)
    if (week > 0) {
      calc(week - 1, (balance * Rate).setScale(-3, BigDecimal.RoundingMode.UP).toInt)
    } else {
      balance
    }
  }
}