The input consists of one or more indices. Each index consists of at least one and at most 100 words followed by a line containing a pound sign '#'. No word contains more than 20 characters. The words in an index consist only of lowercase English letters, and are listed in sorted order according to some collating sequence. Not all characters will necessarily appear in an index, but an index will determine a unique ordering among the characters that do appear. For each index, output a single string that specifies the collating sequence for the characters appearing in that index. Each index is a separate problem.
Input must be read from the file "prob22.in",
and output must be written to the file "prob22.out".
All output to the screen will be ignored.
<BOF> xwy zx zxy zxw ywwx # q a # frog forg fgro gorf gfor # <EOF>
xzyw qa rofg
Dr. Eric Shade