There are N boxes and N coins on the coordinate line. The coordinate of the i-th box is B_i, and the coordinate of the j-th coin is C_j. You are starting at the point with coordinate 0, and can move freely along the coordinate line.
If you go to a point with a coin, you can pick up that coin. You can carry as many coins as you like. If you go to a point with the box, you can utilize one coin and open the box (but you are not forced to do that). You cannot pick up the coin that was already picked up, or open the box that is already opened.
You want to open all N boxes. Find the minimum distance you need to travel to achieve your goal.
The first line of input contains one integer N (1≤N≤105).
The second line contains N integers B_1,B_2,…,B_N. The i-th of those integers is coordinate of the i-th box (1≤B_i≤109, B_i<B_i+1 for 1≤i<N).
The third line contains N integers C_1,C_2,…,C_N. The i-th of those integers is coordinate of the i-th coin (1≤C_i≤109, C_i<C_i+1 for 1≤i<N).
Print one integer: the minimum distance you need to travel to open all boxes.