#P2228. InterferenceSignal

InterferenceSignal

Dr.Kong’s laboratory monitorsome interference signals. The interference signals can be digitized into aseries of positive integer. May be, there are N integers a1,a2,…,an.<o:p></o:p>

 

Dr.Kong wants toknow the averagestrength of a contiguous interference signal block. the block mustcontain at least M integers.<o:p></o:p>

 

Pleasehelp Dr.Kong tocalculate the maximumaverage strength, giventhe constraint.<o:p></o:p>

Input

The input contains K test cases. Each test case specifies:
* Line 1: Two space-separated integers, N and M.
* Lines2~line N+1: ai (i=1,2,…,N)
1 ≤ K≤ 8, 5 ≤ N≤ 2000, 1 ≤ M ≤ N, 0 ≤ ai ≤9999

Output

For each test case generate a single line containing a single integer that is 1000 times the maximal average value. Do not perform rounding.

Sample Input

2 
10 6
6 
4
2
10
3
8
5
9
4
1
5 2
10
3
8
5 
9 

Sample Output

</p>
6500
7333

HINT

Source