Problems
Calling a call center is a series of long waits.
Therefore, Sujeong wants to develop a program that informs how many people are waiting and how many total minutes of waiting time are expected.
The program receives a total of three types of commands as follows.
- call
- wait
- check: Outputs the number of waiting people and the expected waiting time in the format "A people B minutes".
Input
The number of commands
From the second line, commands are given over
Output
Output in the form of "A people B minutes" on each line as many times as the number of check statements.
Example
8
call 6
call 3
check
wait 4
wait 4
check
call 2
check
2 people 9 minutes
1 people 1 minutes
2 people 3 minutes