Problem D
Vinir
Languages
en
is

Input
The first line of the input contains two integers
Output
For each query of the type 2 a,
print a single line denoting how many friends
Scoring
Group |
Points |
Constraints |
1 |
20 |
|
2 |
30 |
|
3 |
50 |
|
Sample Input 1 | Sample Output 1 |
---|---|
2 3 1 1 2 2 1 2 2 |
1 1 |
Sample Input 2 | Sample Output 2 |
---|---|
4 5 2 1 1 1 4 2 4 1 3 4 2 3 |
0 1 2 |