NiceSet

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

The Great Kagura loves the number SS. In front of her, she has a sequence of integers a_1,,a_na\_1, \dots , a\_n. She wants to select a collection of these integers such that the sum of the absolute values of the differences of all pairs of integers in her collection is at most SS. For example, if her collection is xx, yy, zz, then xy+xz+yzS|x − y| + |x − z| + |y − z| ≤ S. She wants to select the largest collection that she can. Can you help her?

입력

The first line of the input contains the two integers nn and SS. The second line of the input contains a_1,,a_na\_1, \dots , a\_n.

출력

Output the size of the largest collection of integers from among a_1,,a_na\_1, \dots , a\_n that satisfy the required condition.

제한

  • 1n300,0001 ≤ n ≤ 300\\,000
  • 1a_i1,000,000,0001 ≤ a\_i ≤ 1\\,000\\,000\\,000
  • 1S10181 ≤ S ≤ 10^{18}