Nails

No attempts yetTime limit1sMemory limit128 MB

Problem

Adam is hammering nails into a board. He has already driven some of the nails to their own heights, but he has no time to keep working. Kozik, standing next to him, wants to drive a few more nails so that as many nails as possible end up at the same height.

Kozik can swing the hammer at most kk times. His strength and precision are so great that a single strike can drive any nail down to any height he likes between 00 and the height at which that nail is currently driven. In other words, one strike lowers a chosen nail to any value from 00 up to its current height.

Input

The first line contains two integers nn and kk, the number of nails and the maximum number of times Kozik may strike (2n,k1062 \le n, k \le 10^6).

The second line contains nn integers w1,w2,,wnw_1, w_2, \dots, w_n (0wi1090 \le w_i \le 10^9), where wiw_i is the height at which the ii-th nail is currently driven.

Output

Print a single line with the maximum number of nails that can be at the same height after Kozik finishes striking.

Hint

For example, if six nails are driven at heights 2,3,3,3,4,52, 3, 3, 3, 4, 5 and k=2k = 2, Kozik can lower the two nails at heights 44 and 55 down to height 33, leaving five nails at height 33.