#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, r, ql, qr, i, nl, nr;
  long long min, minl;
  long wl = 0, wr = 0;
  cin >> n >> l >> r >> ql >> qr;
  int weights[n];
  for (i = 0; i < n; i++) {
    cin >> weights[i];
    wr += weights[i];
  }
  min = (wr * r) + (qr * (n - 1));
  minl = (wr * l) + (ql * (n - 1));
  if (minl < min) min = minl;
  if (n == 1) {
    minl = wr * l;
    if (min < minl)
      cout << min << endl;
    else
      cout << minl << endl;
  } else {
    for (i = 0; i < n - 1; i++) {
      wl += weights[i];
      wr -= weights[i];
      nl = i + 1;
      nr = n - nl;
      if (nl == nr || abs(nl - nr) == 1) {
        minl = wl * l + wr * r;
      } else if (nl > nr) {
        minl = wl * l + wr * r + ql * (n - (2 * nr) - 1);
      } else if (nl < nr) {
        minl = wl * l + wr * r + qr * (n - (2 * nl) - 1);
      }
      if (minl < min) min = minl;
    }
    cout << min << endl;
  }
  return 0;
}
