#BS0000074. Trung vị lớn nhất (Maximum Median)

Trung vị lớn nhất (Maximum Median)

Maximum Median

Source: Codeforces

Version: Phuoc Hung OJ Extended

Problem Statement

Given an odd-sized integer array, one operation increments one element by one. Using at most kk operations, maximize the median.

Input

The first line contains n,kn,k. The second line contains the array.

Output

Print the maximum possible median.

Subtasks

  • Subtask 1 — 20%: n≤100n\le100.
  • Subtask 2 — 30%: n≤5000n\le5000.
  • Subtask 3 — 50%: odd n≤2⋅105n\le2\cdot10^5, k≤109k\le10^9, ai≤109a_i\le10^9.

Example

Input

5 5
1 2 1 1 1

Output

3

Explanation

Five increments are enough to make the median 3, but not 4.