#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, t;
  cin >> n >> a >> b >> c >> t;
  int p[n + 5];
  for (int i = 0; i < n; i++) {
    cin >> p[i];
  }
  p[n] = t;
  int re1 = a * n;
  int re2 = 0;
  for (int i = 1; i <= n; i++) {
    re2 += c * (p[i] - p[i - 1]) * i;
  }
  for (int i = 0; i < n; i++) {
    re2 += a - b * (t - p[i]);
  }
  cout << max(re1, re2);
  return 0;
}
