Input
The first line of input contains an integer representing \( N \).
The second line of input contains \( N \) space-separated strings representing the codes on the spare parts.
Output
The output should be a single line containing a list after grouping the spare parts.
Explanation
For example, if the given number is \( N=6 \) and the list of codes is abc abbbc uahau fghg kvukkv hhcych ,
- Codes with 0 duplicate letters \( \rightarrow \) abc
- Codes with 1 duplicate letter \( \rightarrow \) abbbc, fghg
- Codes with 2 duplicate letters \( \rightarrow \) hhcych, kvukkv, uahau
- The sorted list after grouping the spare parts in ascending, order is [['abc'], ['abbbc', 'fghg'], ['hhcych', 'kvukkv', 'uahau']] .
The output should be [['abc'], ['abbbc', 'fghg'], ['hhcych', 'kvukkv', 'uahau']] .