using System;

namespace AtTest
{
    class Program
    {
        static void Main(string[] args)
        {
            int k = int.Parse(Console.ReadLine());

            long[] snkArray = new long[k];
            long max = 1000000000000000;
            long now = 19;
            long delta = 1;
            for (int i = 0; i < k&&now<=max; i++)
            {
                if (i < 9)
                {
                    snkArray[i] = i + 1;
                }
                else
                {
                    for (; now < max; now += delta)
                    {
                        if (snk(now) <= snk(now + delta))
                        {
                            snkArray[i] = now;
                            if (now == delta * 100 - 1)
                            {
                                delta *= 10;
                            }
                            now += delta;
                            break;
                        }
                        if (now == delta * 100 - 1)
                        {
                            delta *= 10;
                        }
                    }
                }

                Console.WriteLine(snkArray[i]);
            }
        }

        public static double snk(long val)
        {
            long sk = 0;
            long subN = val;
            while (subN > 9)
            {
                sk += subN % 10;
                subN /= 10;
            }
            sk += subN;
            return (double)val / sk;
        }
    }
}
