#include <bits/stdc++.h>
using namespace std;
void read_file(bool outToFile = true) {}
int n;
int L, R;
int Ql, Qr;
const int MAXN = 100000 + 9;
int A[MAXN];
int main() {
  read_file();
  while (scanf("%d", &n) != -1) {
    scanf("%d %d %d %d", &L, &R, &Ql, &Qr);
    long long ans = LLONG_MAX;
    long long left = 0, right = 0;
    for (int i = 0; i < n; i++) scanf("%d", &A[i]), right += A[i];
    for (int i = 0; i <= n; i++) {
      long long nw;
      nw = left * L + right * R;
      int diff = abs(i - n + i);
      if (diff == 0)
        ;
      else {
        diff--;
        int val = i > n - i ? Ql : Qr;
        nw += diff * val;
      }
      ans = min(ans, nw);
      if (i == n) break;
      left += A[i];
      right -= A[i];
    }
    printf("%lld\n", ans);
  }
}
