#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, p1, p2, t1, t2, p3;
  cin >> n >> p1 >> p2 >> p3 >> t1 >> t2;
  long long temp = n, tot = 0;
  vector<pair<long long, long long> > v;
  v.clear();
  while (temp--) {
    long long x, y;
    cin >> x >> y;
    long long diff = (y - x);
    v.push_back(make_pair(x, y));
    tot += diff * p1;
  }
  for (long long i = 0; i <= n - 2; ++i) {
    long long foo = v[i + 1].first - v[i].second;
    tot += min(foo, t1) * p1;
    foo -= t1;
    if (foo <= 0) continue;
    if (foo > 0) {
      tot += min(foo, t2) * p2;
      foo -= t2;
    }
    if (foo <= 0) continue;
    tot += foo * p3;
  }
  cout << tot << endl;
}
