A CRM has duplicate contacts because emails were stored inconsistently.
Normalize each email:
- Lowercase the whole address.
- In the local part (before @), drop everything from the first '+' on.
- If the domain is gmail.com, also remove all '.' characters from the
local part (dots are insignificant for Gmail).
Count and list the unique normalized addresses.
Input Format:
Line 1: n
Lines 2 to n+1: one email each (always contains exactly one '@')
Output Format:
Line 1: the count of unique normalized emails
Then: each unique normalized email, sorted ascending, one per line.