PROGRAMMING:Reading Room
TIANTI book reading room, please write a simple statistical program of book borrowing. When the reader borrows a book, the administrator enters the book number and presses the's' key, and the program starts timing; When the reader returns the book, the administrator enters the book number and presses the 'e' key, and the program ends. The book number is a positive integer not exceeding 1000. When the administrator input 0 as the book number, it means the end of the day. Your program should output the number of Times readers borrow books and the average reading time of the day.
Note: due to occasional line failure, incomplete records may appear, that is, only's' without 'e', or only 'e' without's'. The system should be able to automatically ignore such invalid records. In addition, the title ensures that the book number is the only identification of the book, and the same book can only be borrowed by one reader at any time interval.
###Input format:
Input gives a positive integer $$n $$($$Le 10 $$) in the first line, followed by the record of $$n $$days. The daily record consists of several borrowing operations, one line for each operation, and the format is as follows:
`Book number '([1,1000]'s integer','s' or 'e','s' occurrence time '('hh: mm','hh 'is an integer in [0,23],'mm' is an integer in [0,59])
The records of each day are guaranteed to be given in time increasing order.
###Output format:
For the daily record, output the number of Times readers borrow books and the average reading time of the day in one line (the integer time in minutes, which is accurate to one digit).
###Input example:
```in
three
1 S 08:10
2 S 08:35
1 E 10:00
2 E 13:16
0 S 17:00
0 S 17:00
3 E 08:10
1 S 08:20
2 S 09:00
1 E 09:20
0 E 17:00
```
###Output example:
```out
2 196
0 0
1 60
```
answer:If there is no answer, please comment
Note: due to occasional line failure, incomplete records may appear, that is, only's' without 'e', or only 'e' without's'. The system should be able to automatically ignore such invalid records. In addition, the title ensures that the book number is the only identification of the book, and the same book can only be borrowed by one reader at any time interval.
###Input format:
Input gives a positive integer $$n $$($$Le 10 $$) in the first line, followed by the record of $$n $$days. The daily record consists of several borrowing operations, one line for each operation, and the format is as follows:
`Book number '([1,1000]'s integer','s' or 'e','s' occurrence time '('hh: mm','hh 'is an integer in [0,23],'mm' is an integer in [0,59])
The records of each day are guaranteed to be given in time increasing order.
###Output format:
For the daily record, output the number of Times readers borrow books and the average reading time of the day in one line (the integer time in minutes, which is accurate to one digit).
###Input example:
```in
three
1 S 08:10
2 S 08:35
1 E 10:00
2 E 13:16
0 S 17:00
0 S 17:00
3 E 08:10
1 S 08:20
2 S 09:00
1 E 09:20
0 E 17:00
```
###Output example:
```out
2 196
0 0
1 60
```
answer:If there is no answer, please comment