Input: one line of space-separated lowercase words.
Output: one group per line, words inside a group sorted alphabetically and separated by spaces; groups ordered alphabetically by their first word.
Your program reads from stdin and prints to stdout.
Input: one line of space-separated lowercase words.
Output: one group per line, words inside a group sorted alphabetically and separated by spaces; groups ordered alphabetically by their first word.
Your program reads from stdin and prints to stdout.