object Main extends App {
  def sumDigit(i:Long) = {
    var temp = i
    var sum = 0
    while (temp>0){
      sum = sum + (temp%10).toInt
      temp = temp/10
    }
    sum
  }
  def judge(n:Long) = {
    val sN = sumDigit(n)
    var m = n + 1
    var flag = true
    while (flag && (m <= (n + 100))) {
      val sM = sumDigit(m)
      if (n * sM > m * sN) {
        flag = false
      }
      m = m + 1
    }
    flag
  }
  val sc = new java.util.Scanner(System.in)
  val k = sc.nextLong()
  var counter = 0L
  var current9s = 9L
  var currentPrefix = 1L
  val pw = new java.io.PrintWriter(System.out)
  while (counter < k){
    if (counter < 9){
      println(counter+1)
      counter = counter + 1
    } else {
      val current = current9s + currentPrefix * (current9s + 1)
      if (judge(current)){
        pw.println(current)
        counter = counter + 1
      }
      currentPrefix = currentPrefix + 1
      if (currentPrefix > 10){
        current9s = current9s * 10 + 9
        currentPrefix = 1
      }
    }
  }
  pw.flush()
}