using System;

namespace AtCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            a = int.Parse(Console.ReadLine());
            int[] b = new int[a];
            int count = 0;
            for(int i = 1;i < int.MaxValue; i++)
            {
                if (count ==  a) continue;
                if (Checks(i))
                {
                    b[count] = i;
                    count++;
                }
            }
            for(int i = 0; i < a; i++)
            {
                Console.WriteLine(b[i]);
            }

        }
        public static bool Checks(decimal a)
        {
            decimal b = Sumsum(a.ToString());
            decimal c = Sumsum((a+1).ToString());
            decimal d = Sumsum((a + 9999).ToString());
            for(int i = 0;i < 1000; i++)
            {
                decimal g = Sumsum((a + i).ToString());
                if ((a / b) > (a + i) / g) return false;
            }
            //Console.WriteLine(a + " " + b + " " + (a / b) + " " + ((a + 1) / c) + " " + Ifif((a / b) , ((a + 1) / c)));
            if ((a / b) <= ((a + 1m) / c) && (a / b) <= ((a + 9999m) / d)) return true;
            else return false;
        }
        
        public static string Ifif(decimal a, decimal b)
        {
            if (a < b) return "true";
            else return "flase";

        }

        public static int Sumsum(string a)
        {
            int aa = 0;
            for (int i = 0; i < a.Length; i++)
            {
               aa += int.Parse(a[i].ToString());
            }

            return aa;
        }
    }
}
