Output #1
9
2
0
8
5
The given sequence is $A=(2,0,2,4,0,2,0,3)$.
This input contains five queries.
* Initially, $B_0=0$.
* The first query is $\alpha = 1, \beta = 8, \gamma = 3$.
* After decryption, we get $L_i = \alpha \oplus B_0 = 1, R_i = \beta \oplus B_0 = 8, X_i = \gamma \oplus B_0 = 3$.
* The answer to this query is $9$. This becomes $B_1$.
* The next query is $\alpha = 10, \beta = 12, \gamma = 11$.
* After decryption, we get $L_i = \alpha \oplus B_1 = 3, R_i = \beta \oplus B_1 = 5, X_i = \gamma \oplus B_1 = 2$.
* The answer to this query is $2$. This becomes $B_2$.
* The next query is $\alpha = 3, \beta = 3, \gamma = 2$.
* After decryption, we get $L_i = \alpha \oplus B_2 = 1, R_i = \beta \oplus B_2 = 1, X_i = \gamma \oplus B_2 = 0$.
* The answer to this query is $0$. This becomes $B_3$.
* The next query is $\alpha = 3, \beta = 6, \gamma = 5$.
* After decryption, we get $L_i = \alpha \oplus B_3 = 3, R_i = \beta \oplus B_3 = 6, X_i = \gamma \oplus B_3 = 5$.
* The answer to this query is $8$. This becomes $B_4$.
* The next query is $\alpha = 12, \beta = 0, \gamma = 11$.
* After decryption, we get $L_i = \alpha \oplus B_4 = 4, R_i = \beta \oplus B_4 = 8, X_i = \gamma \oplus B_4 = 3$.
* The answer to this query is $5$. This becomes $B_5$.