#include <bits/stdc++.h>
using namespace std;
const int N = 202020;
long long n, a[N], l, r, ql, qr, suml = 0, sumr = 0;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n >> l >> r >> ql >> qr;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    sumr += a[i];
  }
  long long ans = sumr * r + (n - 1) * qr;
  for (int i = 1; i <= n; i++) {
    suml += a[i];
    sumr -= a[i];
    long long sum = suml * l + sumr * r;
    if (i > n / 2) sum += (i - (n - i) - 1) * ql;
    if (i < n / 2) sum += (n - i - i - 1) * qr;
    ans = min(ans, sum);
  }
  cout << ans;
  return 0;
}
