#ARC099B. [ABC101D] Snuke Numbers

[ABC101D] Snuke Numbers

Score : 500500 points

Problem Statement

Let S(n)S(n) denote the sum of the digits in the decimal notation of nn. For example, S(123)=1+2+3=6S(123) = 1 + 2 + 3 = 6.

We will call an integer nn a Snuke number when, for all positive integers mm such that m>nm > n, nS(n)mS(m)\frac{n}{S(n)} \leq \frac{m}{S(m)} holds.

Given an integer KK, list the KK smallest Snuke numbers.

Constraints

  • 1K1 \leq K
  • The KK-th smallest Snuke number is not greater than 101510^{15}.

Input

Input is given from Standard Input in the following format:

KK

Output

Print KK lines. The ii-th line should contain the ii-th smallest Snuke number.

10
1
2
3
4
5
6
7
8
9
19