#include <cstdio>
int min(int a, int b)
{
if(a < b)
{
return a;
}
return b;
}
int main()
{
int c, v0, v1, a, p, sum = 0, k = 0, v;
freopen("MrBA.in", "r+", stdin);
freopen("MrBA.out", "w+", stdout);
scanf("%d%d%d%d%d", &c, &v0, &v1, &a, &p);
v = v0;
while(sum < c)
{
k++;
if(k == 1)
{
sum += v;
}
else
{
sum += v - p;
}
v += a;
v = min(v, v1);
}
printf("%d\n", k);
fclose(stdin);
fclose(stdout);
return 0;
}