#include #include #include typedef std::uint_fast32_t uInt; int main() { uInt n; std::cin >> n; uInt start; uInt map=0xffffffff; std::cin >> start; uInt value; for(uInt i=0;i>value; map = map & (~(start ^ value)); } std::cout<<~map<