In this problem the input will consist of a number of lines of English text consisting of the letters of the English alphabet, the punctuation marks ' (apostrophe), . (full stop), , (comma), ; (semicolon), :(colon) and white space characters (blank, newline).
Your task is print the words in the text in lexicographic order (that is, dictionary order). Each word should appear exactly once in your list. You can ignore the case (for instance, "The" and "the" are to be treated as the same word). There should be no uppercase letters in the output.
For example, consider the following candidate for the input text: 
This is a sample piece of text to illustrate this 
problem.

The corresponding output would read as:
a
illustrate
is
of
piece
problem
sample
text
this
to

-----Input format-----
- The first line of input contains a single integer $N$, indicating the number of lines in the input.
- This is followed by $N$ lines of input text.

-----Output format-----
- The first line of output contains a single integer $M$ indicating the number of distinct words in the given text. 
- The next $M$ lines list out these words in lexicographic order.

-----Constraints-----
- $1 \leq N \leq 10000$
- There are at most 80 characters in each line.
- There are at the most 1000 distinct words in the given text.

-----Sample Input-----
2
This is a sample piece of text to illustrate this 
problem. 

-----Sample Output-----
10
a
illustrate
is
of
piece
problem
sample
text
this
to

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = 'import re\r\n\r\nn=int(input())\r\narr=[]; ans=[]\r\n\r\nfor i in range(n):\r\n    temp=input().lower().split()\r\n    for j in temp:\r\n        valids=re.sub(r"[^a-z]+", \'\', j)\r\n        arr.append(valids)\r\n\r\n#while(\'\')\r\nwhile(\'\' in arr):\r\n    arr.remove(\'\')\r\n    \r\n\'\'\'for j in range(len(temp)):\r\n        if(temp[j]==\'.\' or temp[j]==\';\' or temp[j]==\'\\\'\' or temp[j]==\':\'):\r\n            del(temp[j])\r\n        if(temp[j]==\',\' or temp[j]=="\\n" or temp[j]==""):\r\n            del(temp[j])\r\n        \r\n    for j in range(len(temp)):\r\n        arr.append(temp[j])\'\'\'\r\nans=arr\r\n\'\'\'for i in arr:\r\n    valids = re.sub(r"[^a-z]+", \'\', i)\r\n    ans.append(valids)\r\n    print(ans)\'\'\'\r\n        \r\nans=list(set(list(ans)))\r\nans.sort()\r\nprint(len(ans))\r\nprint(*ans, sep=\'\\n\')\r\n    '
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 34256