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:
1≤N≤106
1≤Q≤106
1≤I≤N
1≤K≤N
The initial array A: [1,1,1,1,1,1]