using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Contest.cs
{
	class Program
	{
		static void Main(string[] args)
		{
			int k = ReadIntList()[0];
			if (k <= 9)
			{
				for (int i = 1; i <= k; i++)
				{
					Console.WriteLine(i);
				}
				return;
			}
			else
			{
				for (int i = 1; i < 10; i++)
				{
					Console.WriteLine(i);
				}
				for (int i = 1; i <= k - 9; i++)
				{
					UInt64 a = (UInt64)(9 + 10 * i);
					if(a <= 1000000000000000)
					Console.WriteLine(a);
				}
			}
			//for(int i = 1;i< 200; i++)
			//{
			//	Console.WriteLine(String.Format("{0}:{1}", i, Su(i)));
			//}
		}

		private static double Su(int a)
		{
			var temp = a;
			int sum = 0;
			while(temp != 0)
			{
				sum += temp % 10;
				temp /= 10;
			}
			return (double)a / sum;
		}

		static string[] ReadStr()
		{
			return Console.ReadLine().Split(' ').ToArray();

		}

		static int[] ReadIntList()
		{
			return Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
		}
	}
}