#!python3

# input
K = int(input())


def solve(k):
    w = k // 9
    ans = ""
    if k % 9 != 0:
        ans += str(k % 9)
    ans += "9" * w
    print(ans)


def main():
    for i in range(1, K + 1):
        solve(i)
        

if __name__ == "__main__":
    main()
