A gateway writes one access-log entry per line in this exact shape:
IP - - [TIMESTAMP] "METHOD PATH PROTOCOL" STATUS BYTES
where the request line is wrapped in double quotes and contains the method, the path, and the protocol separated by single spaces; STATUS is a 3-digit HTTP status code (100 to 599); and BYTES is a non-negative integer. The IP, TIMESTAMP, PATH, and other fields never contain a double quote, and the timestamp contains no spaces.
For each entry, take the status code and classify it by its leading digit: class 1 is 100-199, class 2 is 200-299, class 3 is 300-399, class 4 is 400-499, class 5 is 500-599. Report how many entries fall in each class.
Input format
Line 1: an integer n, the number of log entries.
Next n lines: one log entry each, in the format above.
Output format
A single line with five space-separated integers: the counts for classes 1xx, 2xx, 3xx, 4xx, and 5xx, in that order.
Constraints
- 1 <= n <= 40
- Each status code is between 100 and 599 inclusive.