There are many

and

in both bit and BIT.
In BIT, the definition of

and

is also somehow ambiguous.

can sometimes become

and vice versa.
Now, given an event string containing only

and

with length

, you're required to answer

questions
)
which ask what will binary string

be after experiencing the events in interval
![[l_{real},r_{real}]](https://www.nowcoder.com/equation?tex=%5Bl_%7Breal%7D%2Cr_%7Breal%7D%5D)
(The leftmost bit is the most significant bit for

).
Here's the illustration for the event

,

.

: change

in

to

and change

in

to

simultaneously.

: execute

where

is viewed as an integer in binary representation. Specially, if

contains only

,

will become a binary string with all

.
You are required to answer each problem online. For this propose, if we ask
)
in the

th query, it means the actually asked segment is defined as:
where

is the exclusive OR operation and

is the answer for the
-)
th query (viewed as an integer in binary representation) with

.