The first line contains two integers n,mn,mn,m (1≤n≤1051\le n\le 10^51≤n≤105, 1≤m≤min(n,20)1\le m \le \min(n,20)1≤m≤min(n,20)), denoting the number of cloud servers and servers that you have to select.
The second line contains nnn integers w1,w2,…,wnw_1,w_2,\ldots, w_nw1,w2,…,wn (1≤wi≤1091\le w_i \le 10^91≤wi≤109), denoting the servers' computing power.
The third line contains nnn integers q1,q2,…,qnq_1,q_2,\ldots, q_nq1,q2,…,qn (8000≤qi≤120008000\le q_i \le 120008000≤qi≤12000), where pi=qi10000p_i = \frac{q_i}{10000}pi=qi/10000 denotes the iii-th server's transmission efficiency.