A log shipper emits lines of the form:
<timestamp> <LEVEL> <message>
where LEVEL is one of DEBUG, INFO, WARN, ERROR (uppercase) and <message> is
one or more words. Any line that does not have at least 3 whitespace-separated
parts, or whose second part is not one of the four levels, is malformed.
Count the occurrences of each level, and the number of malformed lines.
Input Format:
Line 1: n (number of log lines)
Lines 2 to n+1: one log line each
Output Format (exactly 5 lines):
DEBUG <count>
INFO <count>
WARN <count>
ERROR <count>
malformed <count>