时间限制:C/C++/Rust/Pascal 5秒,其他语言10秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
Sylvy has an array

of length

. Glacy wants you to calculate
%5Cleft(%5Cmax_%7Bx%5Cin%20S%7Da_x%5Cright)%5Cleft(%5Cbigoplus_%7Bx%5Cin%20S%7Da_x%5Cright))
module

, where

denotes the bitwise operator xor.
输入描述:
The input is given from Standard Input in the following format:
输出描述:
Print the answer as an integer.
示例2
说明
The answer is obvious since
holds in this sample.
备注:
