NiceSet
시간 제한1초메모리 제한1024 MB
주어진 수들에서 모든 쌍의 절댓값 차의 합이 S 이하가 되는 가장 큰 부분집합을 고른다.
문제
The Great Kagura loves the number . In front of her, she has a sequence of integers . 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 . For example, if her collection is , , , then . She wants to select the largest collection that she can. Can you help her?
입력
The first line of the input contains the two integers and . The second line of the input contains .
출력
Output the size of the largest collection of integers from among that satisfy the required condition.