Політики і програмісти#10819

Політики і програмісти (Розбір)

Let's assign a value of to competitive programmers and to politicians. Then it's easy to see, that the query simply returns bitwise of the values of , , .

So, we have the following problem: binary values $x_1, x_2,