#include <bits/stdc++.h>
const long long mxn = 1e6 + 7;
const long long mod = 1e9 + 9;
const long long inf = 1e18 + 9;
using namespace std;
long long n, l, r, qr, ql, w[mxn], pref[mxn], ans = 0, mn = inf;
int main() {
  ios_base::sync_with_stdio(0), cout.tie(0);
  cin.tie(0);
  cin >> n >> l >> r >> ql >> qr;
  for (int i = 1; i <= n; i++) {
    cin >> w[i];
    pref[i] = pref[i - 1] + w[i];
  }
  for (int i = 0; i <= n; i++) {
    ans = pref[i] * l + (pref[n] - pref[i]) * r;
    if (i > n - i) {
      ans += (2 * i - n - 1) * ql;
    }
    if (i < n - i) {
      ans += (n - 2 * i - 1) * qr;
    }
    mn = min(mn, ans);
  }
  cout << mn;
  return 0;
}
