Ruben Spawns

No attempts yetTime limit1sMemory limit256 MB

Problem

Being the head judge of a programming contest is no small thing. A long list of jobs has to be finished before the contest can happen. Luckily, Ruben recently got a machine that spawns a small minion at the push of a button, and each minion does part of his work. He also hired an assistant to remind him to run the machine.

There is one catch with minions. If you have too many of them, they get lost. Someone has to keep track of them, so fewer is better. A minion spawned from the machine works a fixed amount and is then spent. A recycling machine exists, but it is hidden in a deep, dark forest somewhere.

The work capacities of the minions the machine makes are normally distributed with both μ\mu and σ\sigma unknown. The number of minions the machine can spawn in a given time interval is Poisson distributed with intensity λ\lambda, also unknown.

What we want to know is the minimum number of times Ruben has to spawn a minion to be sure that all the work gets done. You are given a list of how many work units each of the MM minions can work for. The machine breaks down completely after it has spawned MM minions. You choose which minion to spawn next from the list, but you can spawn each one only once. All minions are unique in their own ways, and two of them may still have the same work capacity.

Input

The first line contains a single integer TT, the number of test cases. Each of the following TT cases consists of two lines. The first line has two integers: WW, the number of work units Ruben needs completed, and MM, the number of minions the machine can spawn. The next line has MM integers CiC_i, the number of work units each minion can complete.

  • 0<T500 < T \le 50
  • 0<W100000 < W \le 10000
  • 0<M1000 < M \le 100
  • 0<Ci1000 < C_i \le 100

Output

For each test case, print on one line the minimum number of minions needed to complete the workload WW. If the workload cannot be completed even with all MM minions, print no rest for Ruben without the quotes. Note that Ruben's name takes a capital R.