#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 mm persons to hold a wedding ceremony. As a nice girl, icerain want to choose at least one gift for each person.

There are nn gifts in a shop, the ith has a value wiw_i. 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 xx in the rang of [0,2301][0, 2^{30} - 1], and I can change the values of the gifts you chosen from wiw_i to wiw_i \oplus xx", "\oplus" means bitwise xor operation.

How lovely she is, but icerain is more confused about how to select the gifts and choose the number xx. Can you help her to choose at least mm gifts and the number xx such that the average value of the gifts you chosen is as large as possible.

Input

The first line contains two integers nn and mm.

The next line contains nn integers w1,w2,...,wnw_1, w_2, ..., w_n.

1m201 \leq m \leq 20, mn10000m \leq n \leq 10000, 0wi23010 \leq w_i \leq 2^{30}-1.

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