Consider a queue of groups. Each group has a unique ID denoted by a string of uppercase alphabets. The length of an ID is less than or equal to 6 characters.
The input contains several lines. Each line presents the group ID and the name of a new comer. The group ID and the name are separated by a space.
The string in the last line is always "END" indicating the end of the input.
The output contains one line. The first string is the ID of the last group in the queue. After that you need to print the name of members in the last group, one by one according to their coming order.