You are given an array A which contains initially only ones. You can perform two operations:
Input:
The first line of input contains N, the size of the array. The second line contains Q, number of operations. Next Q line contains one of the two operations.
Output:
Print the output for the second type of queries in a new line.
Constraints:
The initial array A: