#include <bits/stdc++.h>
using namespace std;
int w[100010];
int al[100010], ar[100010];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, l, r, ql, qr, mini = INT_MAX;
  cin >> n >> l >> r >> ql >> qr;
  for (int i = 0; i < n; ++i) cin >> w[i];
  al[0] = w[0];
  for (int i = 1; i < n; ++i) {
    al[i] = al[i - 1] + w[i];
  }
  ar[n - 1] = w[n - 1];
  ar[n] = 0;
  for (int i = n - 2; i >= 0; --i) {
    ar[i] = ar[i + 1] + w[i];
  }
  mini = al[n - 1] * l + (n - 1) * ql;
  mini = min(mini, ar[0] * r + (n - 1) * qr);
  for (int i = 0; i < n; ++i) {
    int ll = i + 1;
    int rr = n - ll;
    int s = al[i] * l + ar[i + 1] * r;
    if (rr - ll > 1) {
      s += (rr - ll - 1) * qr;
    } else if (ll - rr > 1) {
      s += (ll - rr - 1) * ql;
    }
    mini = min(mini, s);
  }
  cout << mini << endl;
  return 0;
}
