{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"At 21BD, there were some very clever and cunning guys. They managed to cheat on the PP1 endterm, even with an interpreter. The teachers were shocked by this chutzpah, but all at once they set about eliminating the plagiarism. They want to count how many students have cheated. Write a program that will remove all duplicates from a sequence of integers and output a list of unique integers that occur in the input sequence, along with the number of times each occurs."}},{"title":"Input","value":{"format":"HTML","content":"The input file will contain a sequence of integers (positive, negative, and/or zero). The input file may be arbitrarily long."}},{"title":"Output","value":{"format":"HTML","content":"The output for this program will be a sequence of ordered pairs, separated by newlines. The first element of the pair must be an integer from the input file. The second element must be the number of times that that particular integer appeared in the input file. The elements in each pair are to be separated by space characters. The integers are to appear in the order in which they were contained in the input file."}},{"title":"Examples","value":{"format":"HTML","content":"\u003ctable border\u003d\"1px solid\" width\u003d\"100%\" cellpadding\u003d\"4px\" cellspacing\u003d\"0px\"\u003e\n \u003ctbody\u003e\n \u003ctr\u003e\n \u003cth width\u003d\"50%\"\u003eSample Input\u003c/th\u003e\n \u003cth width\u003d\"50%\"\u003eSample Output\u003c/th\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd valign\u003d\"top\"\u003e\u003ccode\u003e\n3 1 2 2 1 3 5 3 3 2\u003cbr\u003e\n \u003cbr\u003e\u003c/code\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"top\"\u003e\n\u003ccode\u003e3 4\u003cbr\u003e\u003c/code\u003e\n\u003ccode\u003e1 2\u003cbr\u003e\u003c/code\u003e\n\u003ccode\u003e2 3\u003cbr\u003e\u003c/code\u003e\n\u003ccode\u003e5 1\u003cbr\u003e\u003c/code\u003e\n \u003cbr\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003c/tbody\u003e\n\u003c/table\u003e"}},{"title":"Note","value":{"format":"HTML","content":"The input may consist of \u003cb\u003emultiple lines\u003c/b\u003e. Be careful."}}]}