
def main():
    ss = input().strip()
    k = int(ss)

    def fs(n):
        s = 0
        for i in str(n):
            s += int(i)

        return s
        
    s = ""
    suke1s = []
    try:
        for j in range(1, 17):
            for i in range(1, 10):
                #print("{}{}".format(i, s))
                n = int("{}{}".format(i, s))
                suke1s.append(n)
                if n > 10 ** 17:
                    raise StopIteration
                
            s = "9" * j
    except:
        pass
            
    ki = 0
    sukes = []
    ns = [n/fs(n) for n in suke1s]

    for i, ni in enumerate(ns):
        if ni == min(ns[i:]):
            sukes.append(suke1s[i])
            #print(ni)

    for s in sukes[0:k]:
        print(s)
            
if __name__ == '__main__':
    main()
