using System;
using System.Collections.Generic;
using System.Linq;
using static Atcoder;
using System.Threading.Tasks;
using System.ComponentModel;

public class Hello
{

    public static void Main()
    {
        long K = long.Parse(Console.ReadLine());
        long count = 0;
        long m = 0, n = 0;
        for (long i = 1; true; i++)
        {
            if (count == K) break;
            if (strReverce(i.ToString())[0] == '9') {
                Console.WriteLine(i);
                count++;
                continue;
            }
            m = (i + 1) * S_func(i);
            n = (i) * S_func(i + 1);
            if (m >= n)
            {

                Console.WriteLine(i);

                count++;
            }

        }
    }

    public static long S_func(long u)
    {
        long ret = 0;
        for (long i = long.Parse(u.ToString().Length.ToString()); i != 0; i--)
        {
            ret += u / long.Parse(Math.Pow(10, i - 1).ToString());
            u -= (u / long.Parse(Math.Pow(10, i - 1).ToString())) * long.Parse(Math.Pow(10, i - 1).ToString());
        }
        return ret;
    }
}


public class Atcoder
{
    static void Swap<T>(ref T a, ref T b)
    {
        var t = a;
        a = b;
        b = t;
    }
    public static int LCM(int a, int b)
    {
        int c = a * b;
        if (a < b) Swap(ref a, ref b);
        int d = a % b;
        while (d != 0)
        {
            a = b;
            b = d;
            d = a % b;
        }
        return c / b;
    }
    public static string strReverce(string s)
    {
        return new string(s.Reverse().ToArray());
    }
    public static int intRead()
    {
        return int.Parse(Console.ReadLine());
    }
    public static bool IsPrime(int n)
    {
        if (n < 2) return false;
        if (n == 2) return true;
        if (n % 2 == 0) return false;

        //double sqrtNum = Math.Sqrt(n);
        for (int i = 3; i < n; i += 2)
        {
            if (n % i == 0) return false;
        }
        return true;
    }
    public static string[] SpRead(char c)
    {
        return Console.ReadLine().Split(c);
    }
    public static int[] SpIntRead(char c)
    {
        return Console.ReadLine().Split(' ').Select(a => int.Parse(a)).ToArray();
    }

}
