Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ACM-ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

A. Vasya and Robot

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputVasya has *n* items lying in a line. The items are consecutively numbered by numbers from 1 to *n* in such a way that the leftmost item has number 1, the rightmost item has number *n*. Each item has a weight, the *i*-th item weights *w*_{i} kilograms.

Vasya needs to collect all these items, however he won't do it by himself. He uses his brand new robot. The robot has two different arms — the left one and the right one. The robot can consecutively perform the following actions:

- Take the leftmost item with the left hand and spend
*w*_{i}·*l*energy units (*w*_{i}is a weight of the leftmost item,*l*is some parameter). If the previous action was the same (left-hand), then the robot spends extra*Q*_{l}energy units; - Take the rightmost item with the right hand and spend
*w*_{j}·*r*energy units (*w*_{j}is a weight of the rightmost item,*r*is some parameter). If the previous action was the same (right-hand), then the robot spends extra*Q*_{r}energy units;

Naturally, Vasya wants to program the robot in a way that the robot spends as little energy as possible. He asked you to solve this problem. Your task is to find the minimum number of energy units robot spends to collect all items.

Input

The first line contains five integers *n*, *l*, *r*, *Q*_{l}, *Q*_{r} (1 ≤ *n* ≤ 10^{5}; 1 ≤ *l*, *r* ≤ 100; 1 ≤ *Q*_{l}, *Q*_{r} ≤ 10^{4}).

The second line contains *n* integers *w*_{1}, *w*_{2}, ..., *w*_{n} (1 ≤ *w*_{i} ≤ 100).

Output

In the single line print a single number — the answer to the problem.

Examples

Input

3 4 4 19 1

42 3 99

Output

576

Input

4 7 2 3 9

1 2 3 4

Output

34

Note

Consider the first sample. As *l* = *r*, we can take an item in turns: first from the left side, then from the right one and last item from the left. In total the robot spends 4·42 + 4·99 + 4·3 = 576 energy units.

The second sample. The optimal solution is to take one item from the right, then one item from the left and two items from the right. In total the robot spends (2·4) + (7·1) + (2·3) + (2·2 + 9) = 34 energy units.

Codeforces (c) Copyright 2010-2017 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jun/25/2017 23:55:17 (c4).

Desktop version, switch to mobile version.

User lists

Name |
---|