#include <bits/stdc++.h>
using namespace std;
bool checkbit(int mask, int bit) { return mask & (1 << bit); }
int setbit(int mask, int bit) { return mask | (1 << bit); }
int clearbit(int mask, int bit) { return mask & ~(1 << bit); }
int togglebit(int mask, int bit) { return mask ^ (1 << bit); }
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  int l, r, PR, PL;
  cin >> n >> l >> r >> PL >> PR;
  int ans = INT_MAX;
  int a[n + 1];
  int PrefixSum[n + 1];
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  PrefixSum[0] = 0;
  for (int i = 1; i <= n; i++) PrefixSum[i] = PrefixSum[i - 1] + a[i];
  for (int i = 0; i <= n; i++) {
    int usedL = i;
    int usedR = n - i;
    int now = PrefixSum[i] * l + (PrefixSum[n] - PrefixSum[i]) * r;
    if (i > n - i) {
      now += (2 * i - n - 1) * PL;
    }
    if (i < n - i) {
      now += (n - 2 * i - 1) * PR;
    }
    ans = min(ans, now);
  }
  cout << ans << endl;
}
