Plasmatic loves playing with playdoughs in his spare time. Currently, he has a collection of
1 x
: Find all playdoughs that weighs exactly grams then split the playdough into and .2 y
: Find the number of playdoughs that weigh exactly grams.
As a good friend of him, you want to print the answers for all of the queries in the form of 2 y
. Do not disappoint him!
Constraints
Subtask 1 [15%]
Subtask 2 [85%]
Note that a 64-bit integer is needed to get full points. In C++, this can be done with long long
. In Java, this can be done with long
. In Python, the standard int
will suffice.
Input Specification
The first line contains two integers
The next line contains
The following
Output Specification
Print the answer to each query of the second type, followed by a newline.
Sample Input
5 4
1 2 3 4 5
1 5
1 4
2 2
2 3
Sample Output
4
2
Comments