#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, l, h, ql, qr, s = 0;
  cin >> n >> l >> h >> ql >> qr;
  long long arr[n];
  for (long long i = 0; i < n; ++i) {
    cin >> arr[i];
    s += arr[i];
  }
  long long s1 = 0, ans = LLONG_MAX;
  for (long long i = 0; i <= n - 1; ++i) {
    long long e = 0;
    long long s2 = s - s1;
    if (i > n - i)
      e = l * s1 + h * s2 + (i - (n - i) - 1) * ql;
    else if (i < n - i)
      e = l * s1 + h * s2 + ((n - i) - i - 1) * qr;
    else
      e = l * s1 + h * s2;
    ans = min(ans, e);
    s1 += arr[i];
  }
  ans = min(ans, l * s1 + (n - 1) * ql);
  cout << ans;
  return 0;
}
