The NSA keeps piling up Russian and Spanish translation data and wiretap recordings, so it wants to grow its data center to one exabyte.
The budget is thin and no new disks can be bought. The capacity has to come from changing how the existing disks store data.
Every server runs four disks as a RAID-1 set. A RAID-1 set converted to RAID-5 holds three times as much.
The data center has n RAID-1 sets. Set i is built from disks of size Si and holds Si GB of data. After conversion to RAID-5 the same set holds 3Si GB, so converting set i raises the total capacity by 2Si GB.
Write a program that picks the sets to convert so the data center gains at least e GB more capacity, while the total size of the converted sets stays as small as possible.
For example, with disk size S=4 a RAID-1 set stores 4 GB (D0 through D3) and a RAID-5 set stores 3×4=12 GB (D0 through D11).
The first line has the number of test cases, which is at most 100.
The first line of each test case has the number of RAID-1 sets n and the capacity e that has to be gained. (1≤n≤100, 0≤e≤109)
The second line has the sizes of the sets, S1 through Sn. (1≤Si≤2000)
For each test case, print on one line the smallest capacity in GB that has to be converted. If no choice of sets gains e GB more capacity, print FULL.