| AGM 2021, Final Round, Day 1 |
|---|
| Finished |
Marko, the bartender, has a long night ahead of him. He has $$$N$$$ glasses (of infinite capacity) arranged in a sequence, numbered from $$$1$$$ to $$$N$$$. Initially all glasses are empty, but he will perform some operations on it:
Knowing the queries that Marko needs to perform through the night, help him answer his questions.
The first line of the input contains two integers $$$1 \leq N \leq 10^5$$$ and $$$1 \leq Q \leq 10^5$$$, the number of glasses and the number of queries.
The following $$$Q$$$ lines each describe a query, being one of the following types:
The output should contain a line for each query of the second type with a single integer representing the answer to that query.
3 2 0 1 2 1 1 1 1 2 100
2
| Name |
|---|


