| acmsguru |
|---|
| Finished |
" record is added to the log.
is the name of the person who just entered. Similarly the "
" record is added when a person leaves the club. From time to time security adds records like "
", where
is the number of the club guests present at the moment. At the moment the club was opened, it was empty. All records are added in the chronological order. If a person entered and exited the club several times, all these events are recorded. At the moment the club is closed some guests may still be there to participate in after-party. The club is big enough to contain any number of visitors at the same time.
" should represent the actual number of guests in the club.
", "
" and "
". The value of
is between 0 and 100, inclusive. All names have length between 1 and 16 characters and consist of only lowercase Latin letters. sample input | sample output |
3 + andrew + ilya - mike | 4 + andrew + ilya + mike - mike |
sample input | sample output |
1 = 2 | 3 + first + second = 2 |
sample input | sample output |
3 - silentbob - silentbob = 1 | 6 + silentbob - silentbob + silentbob - silentbob + silentbob = 1 |
| Name |
|---|


