using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
using Atcoder.AtCoderBeginnerContest101.Questions;
using Atcoder.AtCoderBeginnerContest101.Extensions;

namespace Atcoder.AtCoderBeginnerContest101
{
    class Program
    {
        static void Main(string[] args)
        {
            IAtCoderQuestion question = new QuestionD();    // 問題に合わせて書き換え
            var answer = question.Solve(Console.In);
            //Console.WriteLine(answer);
        }
    }
}

namespace Atcoder.AtCoderBeginnerContest101.Questions
{
    // ここにQuestionクラスをコピペ
    public class QuestionD : AtCoderQuestionBase
    {
        public override string Solve(TextReader inputStream)
        {
            var k = inputStream.ReadInt();
            long previousSunuke = 0;
            double previousIPerSi = 1;

            for (int i = 0; i < k; i++)
            {
                long diffCandidate;
                long nextSunukeCandidate;
                long nextSi;
                long nextDiffCandidate;
                double iPerSi;
                
                diffCandidate = GetDiff(previousIPerSi);

                while (true)
                {
                    nextSunukeCandidate = previousSunuke + diffCandidate;
                    nextSi = S(nextSunukeCandidate);
                    iPerSi = (double)nextSunukeCandidate / nextSi;
                    nextDiffCandidate = GetDiff(iPerSi);

                    if (diffCandidate >= nextDiffCandidate)
                    {
                        break;
                    }
                    diffCandidate = nextDiffCandidate;
                }

                Console.WriteLine(nextSunukeCandidate);
                previousSunuke = nextSunukeCandidate;
                previousIPerSi = iPerSi;
            }

            return string.Empty;
        }

        long S(long n)
        {
            long sum = 0;
            while (n != 0)
            {
                sum += n % 10;
                n /= 10;
            }

            return sum;
        }

        long GetDiff(double iPerSi)
        {
            var power = (long)Math.Ceiling(Math.Log10(iPerSi) - double.Epsilon);
            return (long)Math.Pow(10L, power);
        }
    }


    #region Base Classes

    public interface IAtCoderQuestion
    {
        string Solve(string input);
        string Solve(TextReader inputStream);
    }

    public abstract class AtCoderQuestionBase : IAtCoderQuestion
    {
        public string Solve(string input)
        {
            var stream = new MemoryStream(Encoding.Unicode.GetBytes(input));
            var reader = new StreamReader(stream, Encoding.Unicode);

            return Solve(reader);
        }

        public abstract string Solve(TextReader inputStream);
    }

    #endregion
}

#region Extensions

namespace Atcoder.AtCoderBeginnerContest101.Extensions
{
    internal static class TextReaderExtensions
    {
        internal static int ReadInt(this TextReader reader) => int.Parse(ReadString(reader));
        internal static long ReadLong(this TextReader reader) => long.Parse(ReadString(reader));
        internal static double ReadDouble(this TextReader reader) => double.Parse(ReadString(reader));
        internal static string ReadString(this TextReader reader) => reader.ReadLine();

        internal static int[] ReadIntArray(this TextReader reader, char separator = ' ') => ReadStringArray(reader, separator).Select(int.Parse).ToArray();
        internal static long[] ReadLongArray(this TextReader reader, char separator = ' ') => ReadStringArray(reader, separator).Select(long.Parse).ToArray();
        internal static double[] ReadDoubleArray(this TextReader reader, char separator = ' ') => ReadStringArray(reader, separator).Select(double.Parse).ToArray();
        internal static string[] ReadStringArray(this TextReader reader, char separator = ' ') => reader.ReadLine().Split(separator);
    }
}

#endregion

Measured memory_bytes: 11092