Do you think driving is easy? Not when the streets are coated with ice.
In the city of Nomel, there are exactly N+1 streets running west to east and M+1 avenues running north to south. Each street intersects with every avenue, dividing each street into blocks and each avenue into blocks.
It's winter, and every road is covered in a thick layer of ice. Since driving on ice is difficult, each street and each avenue has its own fixed driving time per block. This time is the same for all blocks of a particular street or avenue.
You may only drive along the streets and avenues. Your task is to determine the minimum total time required to travel from the northwestern intersection of the city to the southeastern one, following the shortest possible route that passes through exactly N+M blocks.
The first line contains two integers and (1 \le N, M \le 500\ 000). The second line contains N+1 positive integers representing the driving times of the streets (listed from north to south). The third line contains M+1 positive integers representing the driving times of the avenues (listed from west to east). No value exceeds 10^9.
Print one integer — the minimum possible total driving time.
Example 1