class R{static void Main(){for(int n=9;n<9e7;)System.Console.WriteLine(n+=n/(n%10)+n%10/9);}}