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

    s = ""
    n = 0
    for j in range(1, 16):
        for i in range(1, 10):
            print("{}{}".format(i, s))
            n += 1
            if n >= k:
                return
                
        s = "9" * j
            
if __name__ == '__main__':
    main()
