Chulsoo wants to determine the name of student number in Class 6 of the second grade. He obtained the roster of all students in the class, except that the name of student number is missing.
Student numbers in the class are assigned after sorting all names in Korean lexicographic order. No two students have the same name.
Every name consists only of precomposed Hangul syllables. Names are compared syllable by syllable from left to right. At the first differing syllable, the name containing the earlier syllable comes first. If one name is a prefix of the other, the shorter name comes first. The syllable order is the Unicode order 가, 각, , 힣.
Chulsoo has the names of the other students in Class 6 and the roster of every second-grade student.
Find every second-grade student's name that could be the name of student number in Class 6.
The input is given in the following format:
For each test case, first print the number of possible names.
Then print the possible names in Korean lexicographic order, one per line.
In the first test case, both 김서준 and 남도윤 can be the second student in Class 6.
Each case is given in the following format:
are the names of the students in Class 6 other than the student whose name is missing, given in Korean lexicographic order. If , this part contains no names.
are the names of all second-grade students, given in Korean lexicographic order.
| 29 |
or . |
| 3 | 45 | No additional constraints. |