using System;

	class MainClass
	{
		public static void Main(string[] args)
		{
			long n = 1;
			long sumn = 0;
			long m = n + 1;
			long summ = 0;
			long K = long.Parse(Console.ReadLine());
			
			long cnt = 0;
			string sn = string.Empty;
			string sm = string.Empty;
			long cntn = 0;
			long cntm = 0;

			while(cnt < K){
				sn = n.ToString();
				cntn = sn.Length;
				sm = m.ToString();
				cntm = sm.Length;
				for (int i = 0; i < cntn; i++)
				{
					sumn += long.Parse(sn.Substring(i, 1));
				}
				for (int i = 0; i < cntm; i++)
				{
					summ += long.Parse(sm.Substring(i, 1));
				}
				if (((double)n / (double)sumn) <= ((double)m / (double)summ)){
					Console.WriteLine(n);
					cnt++;
				}
				n++; sumn = 0;
				m++; summ = 0;
			}
		}
	
}
