#include <bits/stdc++.h>
using namespace std;
const long long INF = 1000000007;
int a[100100];
int main() {
  long long n, l, r, ql, qr;
  cin >> n >> l >> r >> ql >> qr;
  long long tot = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    tot += a[i];
  }
  long long mm = 9999999999;
  long long t = 0;
  for (int j = 1; j <= n + 1; j++) {
    int i = j - 1;
    t += a[i];
    int w = (n - i);
    long long xx = t * l;
    long long rr = (tot - t) * r;
    long long s = 0;
    if (i > w + 1) {
      s += (i - w - 1) * ql;
    } else if (w > i + 1) {
      s += (w - i - 1) * qr;
    }
    s += rr + xx;
    mm = min(mm, s);
  }
  cout << mm;
  return 0;
}
