A university's computer system assigns user names according to the following set of rules:
The input will contain data for a number of test cases. The first line of each test case will contain two positive integers: the number of names and the value of MAXLEN (5 ≤ MAXLEN &le 80). This will be followed by the list of names. Each name will consist of at most 80 characters and will begin with the first name, followed by middle names, if any, and will conclude with the last name. A single blank space will separate first, middle, and last names. Any name can contain upper and lower case letters, hyphens, and apostrophes. A last name will contain at least two letters, other names will contain at least one letter (they could be just initials). There will be no more than 200 names in each case. The last test case will be followed by a line containing two zeros for the number of names and MAXLEN.
For each case, the output will begin with a line containing the case number. This will be followed by the list of user names, one per line, in the same order as the corresponding names in the input.
Sample Input2 6 Jenny Ax Christos H Papadimitriou 11 8 Jean-Marie d'Arboux Jean-Marie A d'Arboux Jean-Marie B d'Arboux Jean-Marie C d'Arboux Jean-Marie D d'Arboux Jean-Marie D d'Arboux Jean-Marie F d'Arboux Jean-Marie G d'Arboux Jean-Marie H d'Arboux Jean-Marie I d'Arboux Jean-Marie J d'Arboux 11 9 Jean-Marie d'Arboux Jean-Marie A d'Arboux Jean-Marie B d'Arboux Jean-Marie C d'Arboux Jean-Marie D d'Arboux Jean-Marie D d'Arboux Jean-Marie F d'Arboux Jean-Marie G d'Arboux Jean-Marie H d'Arboux Jean-Marie I d'Arboux Jean-Marie J d'Arboux 0 0 |
Sample OutputCase 1 jax cpapad Case 2 jdarboux jdarbou1 jdarbou2 jdarbou3 jdarbou4 jdarbou5 jdarbou6 jdarbou7 jdarbou8 jdarbou9 jdarbo10 Case 3 jdarboux jdarboux1 jdarboux2 jdarboux3 jdarboux4 jdarboux5 jdarboux6 jdarboux7 jdarboux8 jdarboux9 jdarbou10 |