#K10236. Network Packet Log Analyzer

    ID: 23202 Type: Default 1000ms 256MiB

Network Packet Log Analyzer

Network Packet Log Analyzer

You are given a series of network packet logs. Each log contains a timestamp, source and destination IP addresses, a protocol, and the number of bytes transferred.

The log format is as follows:

\( [YYYY-MM-DD HH:MM:SS] \; src \; -> \; dest \; protocol \; bytes \)

Your task is to compute the total number of packets, the sum of bytes transferred, and the count for each protocol (ICMP, TCP, UDP).

Output a single line containing five space-separated integers in the following order: total packet count, total bytes transferred, count of ICMP packets, count of TCP packets, and count of UDP packets.

inputFormat

The first line contains a non-negative integer n — the number of log entries. The following n lines each contain a network packet log.

outputFormat

Print a single line with five space-separated integers: total packet count, total bytes transferred, count of ICMP packets, count of TCP packets, and count of UDP packets.

## sample
1
[2023-01-01 12:34:56] 192.168.0.1 -> 192.168.0.2 TCP 1500
1 1500 0 1 0

</p>