package main

import (
	"fmt"
)

func main() {
	var K int64
	fmt.Scanf("%d", &K)
	i := int64(1)
	for ; i < K+1; i++ {
		j := i
		n := int64(1)
		m := int64(1)
		l := int64(0)
		for ; j >= 10; j -= 9 {
			n++
			m *= 10
			l *= 10
			l += 9
		}
		fmt.Printf("%d\n", m*(i-9*(n-1))+l)
	}

	return
}
