#Lutece1560. Icerain
Icerain
Migrated from Lutece 1560 Icerain
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
There will be persons to hold a wedding ceremony. As a nice girl, icerain want to choose at least one gift for each person.
There are gifts in a shop, the ith has a value . When icerain is confusing how to select the gifts, a magician said to her that "after you choosing the gifts, you can choose an integer in the rang of , and I can change the values of the gifts you chosen from to ", "" means bitwise xor operation.
How lovely she is, but icerain is more confused about how to select the gifts and choose the number . Can you help her to choose at least gifts and the number such that the average value of the gifts you chosen is as large as possible.
Input
The first line contains two integers and .
The next line contains integers .
, , .
Output
The maximum average value in the form of irreducible fraction.
Samples
4 2
1 1 1 1
1073741823/1
Resources
The 15th UESTC Programming Contest Preliminary