object Main {
  val sc = new java.util.Scanner(System.in)

  def main(args: Array[String]): Unit = {
    val n = sc.nextInt / 10

    for( i <- 1 until 10) {
      print(" "+i.toString)
    }
    println
  }
}