# Traditional Game

Many years ago, when Chmyaaax was not yet evil, he loved to play a traditional game from the tribes of the Link-Cut planet system with Anton. The game takes place on a $1×n$ board, where each cell contains a pair of numbers $a_{i},b_{i}$,all numbers are distinct. There is also a game piece that initially is at position $1$, and a magical balance that initially equals $0$. The players take turns making moves, with Chmyaaax going first.

Suppose the game piece is currently on cell $i$.

On his turn, Chmyaax can move the piece forward by $k$ cells, where $k>0$, subtracting $k⋅a_{i}$ coins from the balance, and changing the position of the piece to $i+k$.

On his turn, Anton can move the piece backward by $k$ cells, where $k>0$, adding $k⋅b_{i}$ coins to the balance, and changing the position of the piece to $i−k$, or he can use magic to move the piece to the last cell, adding $(n−i)⋅b_{i}$ coins to the balance, and setting the piece to position $n$.

At any point in time, the piece cannot go off the board (i.e.,its position must be greater than $0$ and less than $n+1$). The game ends when the piece reaches cell $n$. Chmyaaax's goal is to maximize the balance, while Anton's goal is to minimize it. If both players play optimally, what will the balance be at the end of the game? It can be shown that under these conditions, the game will not continue infinitely.

## Input

The first line contains one integer $n(2≤n≤10_{6})$ — the size of the board on which the game happens.

The second line contains $n$ integers $a_{i}(−10_{9}≤a_{i}≤10_{9})$.

The third line contains $n$ integers $b_{i}(−10_{9}≤b_{i}≤10_{9})$.

For each pair of $i$ and $j$, such that $i=j$ and $1≤i,j≤n$ it holds $a_{i}=a_{j}$, $b_{i}=b_{j}$ and $a_{i}=b_{j}$.

## Output

You need to output that value of balance at the end of the game, if both players play optimally.

## Examples

## Note

In the first test sample, for Chmyaax is optimal to jump from the start to the end decreasing the balance by $33⋅7=231$, achieving the balance $−231$. It could be proven that there isn't any strategy for him, with which he can achieve bigger balance.

In the second test sample, Chmyaax can jump to the cell $2$ changing balance to $−5⋅2=−10$, Anton can move the piece to the last cell, adding to the balance $15⋅2=30$ making balance equal $20$.

## Scoring

($25$ points): $n≤20$;

($30$ points): $n≤50$, $−200≤a_{i},b_{i}≤200$;

($40$ points): $n≤5000$;

($30$ points): $n≤10_{5}$;

($75$ points): no additional constraints.