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)
                {
                    Console.Write(i);
                    for (var j = 0; j < ketaCnt; ++j)
                    {
                        Console.Write(9);
                    }
                    Console.WriteLine();
                    ++cnt;
                    if (cnt == K) return;
                }
                ++ketaCnt;
            }
        }
    }
}
