#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n, A, B, C, T;
  cin >> n >> A >> B >> C >> T;
  long long arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  sort(arr, arr + n);
  if (B == C) {
    cout << n * A << endl;
  } else {
    if (B > C) {
      cout << n * A << endl;
    } else {
      long long i;
      long long unread = 1;
      long long val = 0;
      for (i = 1; i < n; i++) {
        val += (arr[i] - arr[i - 1]) * C * unread;
        unread++;
      }
      val += (T - arr[n - 1]) * C * unread;
      long long delayed_cost = 0;
      for (i = 0; i < n; i++) {
        long long temp = (T - arr[i]) * B;
        delayed_cost += (A - temp);
      }
      cout << val + delayed_cost << endl;
    }
  }
  return 0;
}
