package main

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

func getNextLine(scanner *bufio.Reader) string {
	var buffer string
	for {
		line, isPrefix, _ := scanner.ReadLine()
		buffer += string(line)
		if isPrefix == false {
			break
		}
	}
	return buffer
}

func getIntList(scanner *bufio.Reader) []int {
	list := strings.Split(getNextLine(scanner), " ")
	l := len(list)
	result := make([]int, l)
	for i := 0; i < l; i++ {
		result[i], _ = strconv.Atoi(list[i])
	}
	return result
}

func main() {
	fp := os.Stdin
	if len(os.Args) > 1 {
		fp, _ = os.Open(os.Args[1])
	}

	scanner := bufio.NewReader(fp)

	var k int64
	fmt.Sscan(getNextLine(scanner), &k)
	var i, j int64
	j = 0

	for i = 1; i <= k; i++ {
		j++
		if i < 10 {
			fmt.Println(i)
			continue
		}
		ans := ((j - 9) * 10) + 9
		sum := int64(0)
		for ans > 0 {
			sum += ans % 10
			ans /= 10
		}
		for sum*10 < ((j-9)*10)+9 {
			j++
		}
		fmt.Println(((j - 9) * 10) + 9)
	}
}
