As we all know, the mode of a multiset refers to the number that appears most frequently in the multiset. One day, Poro is curious about calculating the number of occurrences of the mode in a given multiset. As Dango happens to pass by, the problem is quickly resolved.
However, Poro then scatters numerous cookies of various sizes and wants to determine the maximum number of cookies that satisfy the following condition:
Dango is initially perplexed, but upon examining the cookies twice, she realizes that the maximum size of the chosen subset must be greater than half of the total number of cookies. Now, Dango knows how to compute the answer to this question. As she spots you passing by, she decides to test whether you can solve this problem as well.
Please note that the memory limit for this problem is 1 megabyte.
The first line contains two integers $$$n,k$$$ ($$$1\le n \le 10^6$$$, $$$0\le k \le 9$$$), indicating the size of the multiset and the limit $$$k$$$.
The second line gives the size of cookies $$$a_i$$$ ($$$1\le i\le n$$$, $$$0\le a_i\le 10^9$$$)
The third line gives the size of cookies $$$a_i$$$ again.
Output one integer indicating the answer.
6 3 1 1 4 5 1 4 1 1 4 5 1 4
5
| Name |
|---|


