Time limit
2s
Memory limit
128 MB
A program menu has N options. Each option consists of one or more words describing what the option does. Process the options from top to bottom and assign one representative alphabet letter as the shortcut key for each option. Use the following rules.
The first line contains the number of options N (1 ≤ N ≤ 30). Each of the next N lines contains one option string. An option consists of at most 5 words, and each word consists of at most 10 alphabet letters. Adjacent words are separated by one space.
Print the N options in input order. Surround the alphabet letter assigned as a shortcut key with [ and ].