using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;

class Program
{
    static void Main()
    {
        var Ks = ReadLine();
        var K = long.Parse(Ks);
        var l= 9-int.Parse(Ks[Ks.Length-1]+"");
        var a = K+l;
        var min = (double)a/a.ToString().Sum(x=>long.Parse(x+""));
        
        var c =0;
        var i =1;
        while (c!=K)
        {
            
            if ((double)i/i.ToString().Sum(x=>long.Parse(x+""))<=min)
            {
                WriteLine(i);
                c++;
            }
            i++;
        }

    }
}