#include <bits/stdc++.h>
using namespace std;
int l[1001101] = {0}, a[1001101], r[1001101] = {0};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, ll, rr, p, q;
  cin >> n >> ll >> rr >> p >> q;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    l[i] = a[i];
    r[i] = a[i];
    l[i] += l[i - 1];
  }
  for (int i = n; i > 0; i--) {
    r[i] += r[i + 1];
  }
  int ans = 1000000221, mn;
  for (int i = 0; i <= n; i++) {
    if (abs(n - 2 * i) > 1) {
      if (i < n - i) {
        mn = (n - 2 * i - 1) * q;
      } else
        mn = (2 * i - n - 1) * p;
    } else
      mn = 0;
    ans = min(ll * l[i] + rr * r[i + 1] + mn, ans);
  }
  cout << ans;
  return 0;
}
