package main

import (
	"bufio"
	"os"
	"strconv"
	"fmt"
)

var sc = bufio.NewScanner(os.Stdin)

func nextString() string {
	if !sc.Scan() {
		panic("failed scan string")
	}
	return sc.Text()
}

func nextInt() int {
	if !sc.Scan() {
		panic("failed scan int")
	}
	i, e := strconv.Atoi(sc.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func main() {
	sc.Split(bufio.ScanWords)
	k := nextInt()

	i := 1
	j := 0

	for l := 0; l < k; l++ {
		fmt.Print(i)
		for m := 0; m < j; m++ {
			fmt.Print("9")
		}
		fmt.Print("\n")
		if i == 9 {
			i = 1
			j++
			if j == 2 {
				j = 3
			}
		} else {
			i++
		}
	}
}
