Kuro learn permutation excited create new permutation type he choose n distinct positive integer set S now define magical permutation a permutation integer 0 2x 1 x nonnegative integer the bitwise xor consecutive element permutation element SSince Kuro excite magical permutation wants create long magical permutation possible in word wants find large nonnegative integer x magical permutation integer 0 2x 1 since newbie subject want help find value x magical permutation x