using System;

namespace AtCoder.ABC101
{
    class d
    {
        static void Main(string[] args)
        {
            var line = Console.ReadLine().Trim();
            var K = int.Parse(line);
            var cnt = 0;
            var ketaCnt = 0;
            while (true)
            {
                for(var i = 1; i < 10; ++i)
                {
                    if(i == 1 && ketaCnt != 1)
                    {
                        for (var k = 0; k < 10; ++k)
                        {
                            Console.Write(i);
                            for (var j = 0; j < ketaCnt; ++j)
                            {
                                if (j == 0)
                                {
                                    Console.Write(k);
                                }
                                else
                                {
                                    Console.Write(9);
                                }
                            }
                            Console.WriteLine();
                            ++cnt;
                            if (cnt == K) return;
                        }
                    }
                    else
                    {
                        Console.Write(i);
                        for (var j = 0; j < ketaCnt; ++j)
                        {
                            Console.Write(9);
                        }
                        Console.WriteLine();
                        ++cnt;
                        if (cnt == K) return;
                    }
                }
                ++ketaCnt;
            }
        }
    }
}
