#include <bits/stdc++.h>
using namespace std;
int main() {
  int c, v, m, l, a, i = 1, x;
  cin >> c >> v >> m >> a >> l;
  x = v;
  while (x < c) x += min(v + i * a - l, m - l), i++;
  cout << i << endl;
}
