object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt
  var num: BigInt = 100000
  for(i <- 0 until n-1) {
    num += num / 20
    if(num%10!=0) {
      num = num / 10
      num = num * 10 + 10
    }
    if(num%100!=0) {
      num = num / 100
      num = num * 100 + 100
    }
    if(num%1000!=1000) {
      num = num / 1000
      num = num * 1000 + 1000
    }
  }
  println(num)
}