| 2024 China Collegiate Programming Contest (CCPC) Jinan Site (The 3rd Universal Cup. Stage 17: Jinan) |
|---|
| Finished |
There is a useful feature on Mikufans that allows users to leave a message during the video playback, which is called danmaku. Sometimes, there are so many danmaku messages at the same time that Kaguya cannot take them all in.
Source: https://bilibili.com/video/BV1xx411c79H For simplicity, we only focus on the top danmaku messages: top danmaku messages are displayed at the top of the video screen, and each message occupies exactly one line. There is no limit to the number of danmaku messages at the same time (although Kaguya's screen will only display the first $$$10^9$$$ lines, the remaining messages will still be correctly maintained in the overflow area of the screen).
During the video playback, there may be three types of events:
Kaguya has many videos to watch every day, and she is too busy to re-watch the video from the beginning, so she asks you for help. Please help her find the senders of the danmaku messages.
The first line of input contains one integer $$$n$$$ ($$$1 \le n \le 5 \times 10^5$$$), representing the number of events.
Each of the following $$$n$$$ lines contains one event in order. Each event is described in one of the following formats:
For each query of type 3, output the answer in a single line.
71 21 43 32 13 21 43 7
2 0 3
53 63 81 21 53 2
0 0 1
| Name |
|---|


