Milan the woodcutter has to bring home a certain amount of wood. His saw sits on a stand that can be set to any integer height in meters, and it cuts every tree in the forest at exactly that height. Only the part of a tree above the blade falls down - a tree that is not taller than the blade is left untouched.
The higher the saw stands, the less wood Milan gets. He cares about the forest, so he does not want to cut a single meter more than he needs.
All trunks are equally thick, so the amount of wood is simply measured in meters of cut trunk. Your task is to find the highest integer height at which Milan can set the saw and still get at least the amount of wood he needs.
Input
First line of input will be a single integer - the number of testcases.
The first line of each testcase contains two integers and - the number of trees in the forest and the amount of wood Milan needs.
The second line contains integers - the heights of the trees.
Output
For every testcase print a single line with the highest height at which the saw can be set.
Example
2 5 14 24 21 19 14 22 1 7 7
18 0
In the first testcase the saw set to meters takes meters off the first tree, off the second, off the third, nothing off the fourth and off the fifth - exactly the meters Milan needs. In the second testcase the only tree has to be cut all the way to the ground.
Constraints
- there is always enough wood in the forest
This problem was adapted, with permission, from Drva, authored by Društvo matematičara Srbije and Fondacija Petlja.