Ivan's submission of XOR Magic | CodeChef