#include <bits/stdc++.h>
using namespace std;
template <class T>
T cross(complex<T> a, complex<T> b) {
  return imag(a * conj(b));
}
template <class T>
T min(T a, T b, T c) {
  return min(a, min(b, c));
}
template <class T>
T max(T a, T b, T c) {
  return max(a, max(b, c));
}
template <class T>
void setmin(T &a, T b) {
  if (b < a) a = b;
}
template <class T>
void setmax(T &a, T b) {
  if (b > a) a = b;
}
const int MAXN = 200000;
int N;
long long W[MAXN];
long long l, r, ql, qr;
long long minWt() {
  long long ls = 0, rs = 0;
  for (int i = 0; i < N; i++) rs += W[i];
  long long ans = r * rs + (N - 1) * qr;
  for (int i = 0; i < N; i++) {
    ls += W[i], rs -= W[i];
    long long nl = i + 1, nr = N - nl;
    long long val = ls * l + rs * r;
    if (nl > nr)
      val += (nl - nr - 1) * ql;
    else if (nr > nl)
      val += (nr - nl - 1) * qr;
    if (val < ans) {
      ans = val;
    }
  }
  return ans;
}
void io(istream &in, ostream &out) {
  in >> N >> l >> r >> ql >> qr;
  for (int i = 0; i < N; i++) in >> W[i];
  out << minWt() << '\n';
}
int main() {
  ifstream fin("354A.in");
  if (fin.good()) {
    ofstream fout("354A.out");
    io(fin, fout);
    fin.close();
    fout.close();
  } else
    io(cin, cout);
  return 0;
}
