Input format
The first line is introduced by the number of n & nbsp; (1 & le; n & le; 100), representing the total number purchases.
rn
in each of the n lines enters information about one purchase. Each line is a set of genres separated by spaces. Genres are lines consisting of Latin letters (A-Z, A-Z) SPAN> DIV>
Output format
Bring all the sets of genres that are found at least in & nbsp; s & nbsp; purchases, purchases, Where & nbsp; s Сode> is introduced after all the purchases. Each set of genres should be sorted in a lexicographic order (by increasing) and bred on a separate line. Kits should be displayed in lexicographic order
Example
Input
5
Comedy Drama
Comedy Fiction
Drama Comedy
Fiction
Comedy Drama
2
Output
Fantasy Sci-Fi
mystery
sci-fi
Hint
There will be no clue here, decide for yourself!