{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"\u003cp\u003e \u003c/p\u003e\r\n\u003cp\u003eThe ism to iit team when visited the college for inspection were sort of in a haste because they had already planned not to give it the premier status.\r\nHowever the leader of the movement Varun Pandey Sir were already ready that such things might be there in their minds. So, to make the inspection procedure really fast and smooth he made a list of all the laboratories of the department.\r\n\r\nHe had asked some of his juniors to compile this list department wise. But the juniors were really lazy (matiyao types) and thus they inturn distributed the work. Now in the end the final list that Varun Sir has is a lot of strings which consists of department names. Each string represents one laboratory. Refer to example for the output.\u003c/p\u003e\r\n\u003cp\u003e \u003c/p\u003e\r\n\r\n\r\n\u003ch3\u003eInput\u003c/h3\u003e\r\nThe first line of input contains the number of strings n \u003c/br\u003e\r\nthe next n lines each contains a string of length 100 max and consists of only lower case alphabets. \u003c/br\u003e\r\n1 \u003c\u003d n \u003c\u003d 500 \u003c/br\u003e \u003c/br\u003e\r\n\r\n\r\n7 \u003c/br\u003e\r\ncse \u003c/br\u003e\r\nmnc \u003c/br\u003e\r\ncse \u003c/br\u003e\r\nele \u003c/br\u003e\r\ncse \u003c/br\u003e\r\nzzza \u003c/br\u003e\r\nphysics \u003c/br\u003e\r\n\r\n\r\n\u003ch3\u003eOutput\u003c/h3\u003e\r\n\u003c/br\u003e\r\ncse 3 \u003c/br\u003e\r\nele 1 \u003c/br\u003e\r\nmnc 1 \u003c/br\u003e\r\nphysics 1 \u003c/br\u003e\r\nzzza 1 \u003c/br\u003e\r\n\r\n\r\n\u003ch3\u003eExplanation\u003c/h3\u003e\r\n\u003cp\u003eThe output contains strings sorted lexicographically and the number in front of them indicates the number of times they occured in the input.\u003c/p\u003e"}}]}