There are multiple test cases, terminated by a line "0 0".
For each test case, the first line contains two integers n,m(1<=n,m<=10^5).
The following one line contains n integers ai,(0<=ai<=10^6).
3 2
2 3 3
0 0
Case #1:
28
46