Output #1
4
1
Initially, the intervals in order of their numbers are $[0, 2], [0, 4], [0, 6], [0, 10]$.
* For the $1$st query, the coordinate of the **right endpoint** of interval $3$ before the operation is $6$, so the intervals after the operation are $[4, 6], [2, 6], [0, 6], [0, 10]$ in order of their numbers.
* For the $2$nd query, the coordinate of the **left endpoint** of interval $2$ before the operation is $2$, so the intervals after the operation are $[2, 4], [2, 6], [0, 6], [0, 10]$ in order of their numbers.
* For the $3$rd query, the intervals that contain coordinate $2 + \frac{1}{2}$ are intervals $1,2,3,4$, which is four intervals, so output $4$.
* For the $4$th query, the coordinate of the **right endpoint** of interval $4$ before the operation is $10$, so the intervals after the operation are $[8, 10], [6, 10], [4, 10], [0, 10]$ in order of their numbers.
* For the $5$th query, the intervals that contain coordinate $1 + \frac{1}{2}$ is only interval $4$, which is one interval, so output $1$.