if __name__ == '__main__':
    K = int(input())

    s = []
    n = 0
    
    j = '0'
    while True:
        for i in range(1, 10):
            if j == '0':
                print(i)
            else:
                print(str(i) + j)
            K = K - 1
            if K == 0:
                exit()
        if j == '0':
            j = '9'
        else:
            j = j + '9'

