using System;
using System.Collections.Generic;
using System.Linq;

class Program {
    static void Main (string[] args) {
        long NN = long.Parse (Console.ReadLine ());

        long dig = 1;
        long count = 1;
        long diff = 1;
        long outputold = 0;
        long output = 1;
        for (long i = 0; i < NN ; i++) { //10^10超えてからが本番
            long s = sn(output);//
            if (s*dig < output){
                output+=9*dig;
                dig*=10;
                i--;
            }else{
                Console.WriteLine (output);
                output+=dig;
            }

        }


    }

    static long sn(long NN) {
        long s = 0;
        for (int i = 0; i < 10; i++) {
            s += NN % 10;
            NN /= 10;
        }
        return s;
    }
}