package main

import "fmt"

func main() {
        var k int
        fmt.Scan(&k)

        s := []byte("0")
        for i := 0; i < k; i++ {
                if s[0] == '9' {
                        s = append([]byte("1"), s...)
                } else {
                        s[0]++
                }
                fmt.Println(string(s))
        }
}