The princess is going to escape the dragon's cave, and she needs to plan it carefully.The princess runs at vp miles per hour, and the dragon flies at vd miles per hour. The dragon will discover the escape after t hours and will chase the princess immediately. Looks like there's no chance to success, but the princess noticed that the dragon is very greedy and not too smart. To delay him, the princess decides to borrow a couple of bijous from his treasury. Once the dragon overtakes the princess, she will drop one bijou to distract him. In this case he will stop, pick up the item, return to the cave and spend f hours to straighten the things out in the treasury. Only after this will he resume the chase again from the very beginning.The princess is going to run on the straight. The distance between the cave and the king's castle she's aiming for is c miles. How many bijous will she need to take from the treasury to be able to reach the castle? If the dragon overtakes the princess at exactly the same moment she has reached the castle, we assume that she reached the castle before the dragon reached her, and doesn't need an extra bijou to hold him off.

The input data contains integers vp, vd, t, f and c, one per line (1 ≤ vp, vd ≤ 100, 1 ≤ t, f ≤ 10, 1 ≤ c ≤ 1000).

Output the minimal number of bijous required for the escape to succeed.

NoteIn the first case one hour after the escape the dragon will discover it, and the princess will be 1 mile away from the cave. In two hours the dragon will overtake the princess 2 miles away from the cave, and she will need to drop the first bijou. Return to the cave and fixing the treasury will take the dragon two more hours; meanwhile the princess will be 4 miles away from the cave. Next time the dragon will overtake the princess 8 miles away from the cave, and she will need the second bijou, but after this she will reach the castle without any further trouble.The second case is similar to the first one, but the second time the dragon overtakes the princess when she has reached the castle, and she won't need the second bijou.

#include <stdio.h>

int main() {

	int vp, vd, t, f, c;
	scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

	if (vp > vd) {
		puts("0");
		return 0;
	}

	double tt = t;
	int cc = 0;
	while (1) {
		double t = vp*tt / (vd - vp);

		if (!(vd*t + 1e-9 < c))
			break;

		cc++;
		tt += 2*t + f;

	}

	printf("%d\n", cc);

	return 0;
}

//In the name of God
#include <stdio.h>

int main()
{
  double vp,vd,t,f,c;
  scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&c);
  double pos=t*vp;
  int need=0;
  while(pos<c)
    {
      if(vd<=vp)
	pos=c;
      else
	{
	  double ti=pos/(vd-vp);
	  pos=pos+ti*vp;
	  if(pos>=c)
	    break;
	  double moretime=pos/vd+f;
	  pos+=moretime*vp;
	  need++;
	  if(pos>=c) break;
	}
    }
  printf("%d\n",need);
  return 0;
}

#include<stdio.h>
//#include<conio.h>

int main()
{
     float k,l,m,n,d,i,count=0,j=1;
     int p=0;
    int A[100001];
    scanf("%f",&k);
    scanf("%f",&l);
    scanf("%f",&m);
    scanf("%f",&n);
    scanf("%f",&d);
    count=k*m;
    if(l<=k){
            printf("0");
    }else{
    while(count<d){
              count=count+k*(count/(l-k));
             // printf("%f\n",count);
              if(count<d){
                          p++;
                          count=count+(k*((count/l)+n));
              }
    }

    printf("%d",p);
    }
   //getch();
    return 0;
}

#include<stdio.h>
int main()
{
float vp,vd,t,f,c,t1,t2;
int cnt=0;
scanf("%f %f %f %f %f",&vp,&vd,&t,&f,&c);
float dp=c;
if(vp>=vd)
printf("0");
else
{while(dp>0)
{if(dp==c)
dp-=vp*t;
t1=(c-dp)/(vd-vp);
dp-=t1*vp;
if(dp>0)
cnt++;
t2=(c-dp)/vd+f;
dp-=t2*vp;
}}
if(vd>vp)
printf("%d",cnt);
return(0);}

#include<stdio.h>
#include<math.h>
main()
{
	int vp,vd,t,f,c;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
	double prinsum=c-vp*t;int reg=0;
	double h;
	if (vp<vd  && prinsum>0)
	{
	while (1)
	{
		h=(double)(c-prinsum)/(vd-vp);
		prinsum-=h*vp;
		if (prinsum<=0) break;
		reg++;
        prinsum-=(h+f)*vp;
		if (prinsum<=0) break;
	}
	printf("%d\n",reg);
	}
	else printf("0\n");
	return 0;
}

#include <stdio.h>

int main(){
    int vp, vd, t, f, c, res=0;
    float sp=0,time;
    float eps = 1e-7;
    scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);

    if(vp>=vd){
        printf("0");
        return 0;
    }

    sp = t*vp;
    while(1){
        //printf("%f\n",sp);
        time=sp/(vd-vp);
        sp+=time*vp;
        //printf("sp1=%f\n",sp);
        if(sp-c>=-eps){
            printf("%d",res);
            break;
        }
        res++;
        //printf("time=%f\n",time);
        sp+=(vp*(f+time));
        //printf("sp2=%f\n",sp);
    }
    return 0;
}

#include<stdio.h>
int main()
{
    double count=0;
    double d1,t,f,c,vp,vd;
    scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&c);
    d1=vp*t;
    while(d1<c)
    {
        t=d1/(vd-vp);
        if(t<0)
            break;
        d1+=t*vp;
        if(d1<c)
            count++;
        d1+=t*vp+f*vp;
    }
    printf("%0.0lf",count);
    return 0;
}

#include <stdio.h>
main()
{
	double vp,vd,t,f,c,C,s,ctr=0,t1,dist,t2;
	scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&C);
	if(vd<vp)
	{
		printf("0\n");
		return 0;
	}
	c=C;
	s=vp*t;
	c=c-s;
	t1=vp*t/(vd-vp);
	s=vp*t1;
	c=c-s;
	if(c>0)
	ctr++;
	dist=C-c;
	//printf("%lf %lf\n",dist,c);
	t2=t1;
	while(c>0)
	{
		t2=dist/vd;
		s=vp*(2*t2+f);
		t1=vp*(2*t2+f)/(vd-vp);
		s+=vp*t1;
		c=c-s;
		//printf("%lf %lf\n",dist,c);
		if(c>0)
		ctr++;
		dist=C-c;
	}
	printf("%.lf\n",ctr);
	return 0;
}

#include<stdio.h>
#include<stdlib.h>

int main(void)
{

     float vp,vd,t,f,c;
     scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);

     float dist=c;
     int bijou = 0;
     dist = c-t*vp;

    if(vd>vp){
     while(dist>0)
      {

          float gap  = c-dist;
          float time = gap/(abs(vd-vp));
          dist = dist-time*vp;
          if(dist>0)
            {
                bijou+=1;
                dist = dist-((c-dist)/vd+f)*vp;
            }

      }

  }
         printf("%d\n",bijou);
         return 0;

}

#include <stdio.h>
#include <stdlib.h>

void solve(){
	double vp,vd,t,f,c;
	scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&c);
	int Ans = 0;
	if(vp>=vd){
		puts("0");
		return;
	}
	double s1 = 0,s2 = 0;
	s1 = (double) vp*t;
	while(s1<c){
		s2 = s1/(vd-vp);
		s1 = s2*vd;
		if(s1>=c)  break;
		Ans ++;
		s1 = s1 + (s2+f)*vp;
	}
	printf("%d\n",Ans);
}
int main(){
	solve();
	return 0;
}
/*
1
100
1
1
1000
 */

/* https://codeforces.com/contest/148/submission/19734187 (Dukkha) */
#include <stdio.h>

int main() {
	int vp, vd, t, f, c, v, ans;
	double x;

	scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);
	v = vd - vp;
	if (v <= 0) {
		printf("0\n");
		return 0;
	}
	x = t * vp;
	ans = 0;
	while (x + x / v * vp < c) {
		ans++;
		x += (x / v * 2 + f) * vp;
	}
	printf("%d\n", ans);
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main(void) {
    double vp = 0;
    double vd = 0;
    double t = 0;
    double f = 0;
    double c = 0;

    scanf("%lf %lf %lf %lf %lf", &vp, &vd, &t, &f, &c);

    double pos = vp * t;
    int bijous = 0;

    while (pos < c) {
        pos += (pos / (vd - vp)) * vp;

        if (pos >= c || pos < 0) {
            break;
        }

        pos += ((pos / vd) + f) * vp;
        bijous++;
    }

    printf("%d\n", bijous);
    return 0;
}

#include <stdio.h>
#define max(a,b) ((a)>(b)?(a):(b))
#define min(a,b) ((a)>(b)?(b):(a))
#define abs(a) ((a)>0?(a):-(a))
int main()
{
//	freopen("test.txt", "r", stdin);
    int vp, vd, t, f, c;
    scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);
    int cnt = 0;
    if(vp >= vd)
        goto Finish;
    double pos = 1.0*vd*(vp*t)/(vd-vp);
    if(pos >= c)
        goto Finish;
    cnt++;
    while(1)
    {
        double newpos = vp*(2.0*pos/vd+f) + pos;
        newpos += (vp*(newpos - pos))/(vd-vp);
        if(newpos >= c)
            break;
        cnt++;
        pos = newpos;
    }
Finish:
    printf("%d", cnt);
}

#include<stdio.h>
int main()
{
	double v1,v2,t,f,c,x1,x2;
	int count=0;
	scanf("%lf %lf %lf %lf %lf",&v1,&v2,&t,&f,&c);
	if(v1>=v2){
		printf("%d\n",count);
		return 0;
	}
	x1=v1*t;
	while(x1<c){
		x1+=(x1/(v2-v1))*v1;
		if(x1>=c){
			break;
		}
		count++;
		x1+=(x1/v2+f)*v1;
	}
	printf("%d\n",count);
	return 0;
}

#include <stdio.h>

int main(void) {
	// your code goes here
	int vp,vd,t,f,c,k=0;
	float sum;
	scanf("%d %d %d %d %d", &vp,&vd,&t,&f,&c);
	if(vp>=vd)
	{printf("0");
	return 0;}
	sum=t*vp;
	while(sum<c)
	{
		sum+=(sum/(vd-vp))*vp;
		if(sum>=c)
		break;
		k++;
		sum+=(sum/vd +f)*vp;
	}
	printf("%d", k);

	return 0;
}

#include <stdio.h>
#include <stdlib.h>

float vp , vd , escape_time , rest_time , distance ,d_p_travled , treasure  , catch_time , t_dragon;
int main()
{
scanf("%f\n%f\n%f\n%f\n%f",&vp,&vd,&escape_time,&rest_time,&distance);

//printf("%d %d %d %d %d",vp,vd,escape_time,rest_time,distance);
if(vp > vd)
printf("0");
else if( vp == vd && escape_time == 0)
{
printf("1");
}

else
{
for(float vr = vd-vp   , d_p_travled = vp*escape_time, d_remain = distance-d_p_travled ;
                                   d_p_travled < distance ;
                                   treasure++)
    {
      catch_time = d_p_travled/vr;
      d_p_travled += vp * catch_time;
      if(d_p_travled >= distance)
      break;
      t_dragon = (d_p_travled/vd) + rest_time ;
      d_p_travled += vp*t_dragon;
    }
        printf("%.0f",treasure);
 }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

float vp , vd , escape_time , rest_time , distance ,d_p_travled , treasure  , catch_time , t_dragon;
int main()
{
scanf("%f\n%f\n%f\n%f\n%f",&vp,&vd,&escape_time,&rest_time,&distance);

//printf("%d %d %d %d %d",vp,vd,escape_time,rest_time,distance);
if(vp > vd)
printf("0");
else if( vp == vd && escape_time == 0)
{
printf("1");
}
else if( vp == vd )
{
printf("0");
}

else
{
for(float vr = vd-vp   , d_p_travled = vp*escape_time, d_remain = distance-d_p_travled ;
                                   d_p_travled < distance ;
                                   treasure++)
    {
      catch_time = d_p_travled/vr;
      d_p_travled += vp * catch_time;
      if(d_p_travled >= distance)
      break;
      t_dragon = (d_p_travled/vd) + rest_time ;
      d_p_travled += vp*t_dragon;
    }
        printf("%.0f",treasure);
 }
    return 0;
}

#include <stdio.h>
int main()
{
    double vp,vd,t,f,c;
    scanf("%lf",&vp);
    scanf("%lf",&vd);
    scanf("%lf",&t);
    scanf("%lf",&f);
    scanf("%lf",&c);

    if(vp>=vd)
    {
        printf("0"); return 0;
    }
    double dd = vp*t;
    double p = dd + dd/(vd-vp)*vp;
    int ans=0;
    while(1){
        if(p>=c){
            printf("%d",ans);
            return 0;
        }
        ans++;
        dd = p + (p/vd + f)*vp;
        p = dd + dd/(vd-vp)*vp;
    }
    return 0;
}

#include <stdio.h>
int main()
{
    double p,d,t,f,c;
    double count;
    double dis,between,cave;
    while (scanf("%lf%lf%lf%lf%lf",&p,&d,&t,&f,&c)!=EOF)
    {
        if (d<=p) {printf("0\n");continue;}
        between=p*t;
        dis=c-between;
        cave=between;
        count=0;
        while(dis>0)
        {
            t=between/(d-p);
            dis-=p*t;
            if (dis<=0) break;
            count++;
            cave=d*t;
            between=t*p+f*p;
            dis-=between;
            between+=cave;
        }
        printf("%d\n",(int)count);
    }
    return 0;
}

#include <stdio.h>
int main()
{
    int vp,vd,t,f,c,i,sum;
    double time,s;
    while(scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c) != EOF)
    {
        if(vp >= vd)
        {
            printf("0\n");
            continue;
        }
        sum = 0;
        s = (double)t * vp;
        while(s < c)
        {
            time = s / (vd - vp);
            s += time * vp;
            if(s >= c)
            break;
            else
            sum++;
            s += vp * (f + time);
        }
        printf("%d\n",sum);
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>

#define EPS 1e-10

int
main(int argc, const char *argv[])
{
    int vp, vd, t, f, c;
    double tz, td, to;

    scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

    if (vd <= vp) {
        printf("0\n");
        return 0;
    }

    int n = 0;

    tz = t * 1.0;
    while (1) {
        td = tz * ((vp * 1.0) / (vd - vp));
        to = tz + td;
        tz = to + td + (f * 1.0);
        if (to + EPS < (c / (vp * 1.0))) {
            n++;
        } else {
            break;
        }
    }

    printf("%d\n", n);

    return 0;
}

#include<stdio.h>
#include<string.h>

int main()
{
	int i,j,count=0;
        double vp,vd,t,f,c;
	scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&c);

	if(vp>=vd){
		printf("0\n");
		return;
	}

	double initial = vp*t;   //p's pos
	double time=t;          // t elapsed
	while(time < c/vp)
	{
		double t1 = initial/(vd-vp);
		time+=t1;

		if(time >= c/vp)
			break;

		double dist = vp*time;

		double ret = dist/vd +f;
		time+=ret;

		initial = time*vp;
		count++;
	}

	printf("%d\n",count);

	return 0;
}

#include<stdio.h>
int main()
{
  int vp1,vd1,t1,f1,c1,count;
   float dist,n,vp,vd,t,f,c;
   count=0;
   scanf("%d %d %d %d %d",&vp1,&vd1,&t1,&f1,&c1);
   vp=vp1;
   vd=vd1;
   t=t1;
   f=f1;
   c=c1;
   dist=vp*t;
   count=0;
   if(dist>=c)
    printf("%d",count);
   else if(vp>=vd)
    printf("%d",count);
   else
   {
     while(1)
     {
      n=(float)(dist)/(float)(vd-vp);
      dist+=(n*vp);
      if(dist>=c)
      {
       printf("%d",count);
       break;
      }
      count++;
      n=((float)(dist)/(float)(vd))+f;
      dist+=(n*vp);
     }
   }
 return 0;
}

#include <stdio.h>

int main()
{
     int vp, vd, t, f, c, sum = 1;
     double x, y;

     scanf("%d %d %d %d %d", &vp, &vd, &t, &f, &c);

     if (vp >= vd || vp * t >= c || vd * vp * t >= c * (vd - vp)) {
	  puts("0");

	  return 0;
     }

     x = (double)vp * t / (vd - vp);
     y = vp * (t + x);

     while (1) {
	  y += vp * (x + f);
	  x = y / (vd - vp);
	  y += vp * x;

	  if (y >= c) break;

	  sum++;
     }

     printf("%d\n", sum);

     return 0;
}

#include <stdio.h>

int main() {
  int vp, vd, t, f, c;
  double sp, sd, buf_t;
  int b;

  scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

  sp = vp * t;
  sd = 0;
  b = 0;

  while (1) {
    if (vp >= vd) break;
    buf_t = sp / (vd - vp);
    sp = sp + vp * buf_t;
    sd = vd * buf_t;
    if (sp >= c) break;
    b++;
    sd = 0;
    sp = sp + vp * (buf_t + f);
  }

  printf("%d", b);

  return 0;
}

#include <stdio.h>
int main (void){
  int vp, vd, t, f, c;
  scanf ("%d%d%d%d%d",&vp, &vd, &t, &f, &c);
  int bazmek = 0;
  if (vp < vd) {
    double ubehla = t * vp;
    while (ubehla < c) {
      double za_jak_dlouho_se_potkali = (ubehla) / (vd - vp);
      ubehla = ubehla + vp * za_jak_dlouho_se_potkali;
      if (ubehla >= c) {
        break;
      } else {
        bazmek++;
        double jak_dlouho_se_vraci = ubehla / vd;
        ubehla = ubehla + vp * (jak_dlouho_se_vraci + f);
      }
    }
  }
  printf("%d\n", bazmek);
  return 0;
}

#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main()
{
     float vp,vd,t,f,c,tt;
     int i,N=0;
    scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
    if(vp>=vd)
    {
        printf("0");
        return 0;
    }
   do
   {
       tt=(vp*t)/(vd-vp);
       if((tt*vd)<c)
           N++;
       t+=tt+tt+f;
   }while((vd*tt)<c);
   printf("%d",N);
     return 0;
}

//      Escape.c
//
//      Copyright 2012 Administrator <cpy@ubuntu>
//
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//
//      You should have received a copy of the GNU General Public License
//      along with this program; if not, write to the Free Software
//      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
//      MA 02110-1301, USA.

#include <stdio.h>

void func(double vp, double vd, int t, int f, int c)
{
    double p = vp * t, temp;
    int ans = 0;
    if (vd <= vp)
    {
        printf("0\n");
        return;
    }
    while (p < c)
    {
        temp = p / (vd - vp);
        p += temp * vp;
        if (p < c)
        {
            ans ++;
        }
        p = p + (f + p / vd) * vp;
    }
    printf("%d\n", ans);
}

int main(int argc, char **argv)
{
    double vp, vd;
    int t, f, c;
    while (scanf("%lf%lf%d%d%d", &vp, &vd, &t, &f, &c) == 5)
    {
        func(vp, vd, t, f, c);
    }
    return 0;
}

#include <stdio.h>

int main() {
	int vp, vd, t, f, c, cnt;
	double c_, time;

	scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);
	if (vp >= vd)
		cnt = 0;
	else {
		cnt = 0;
		c_ = c - t * vp;
		while (c_ > 0) {
			time = (c - c_) / (vd - vp);
			c_ -= time * vp;
			if (c_ <= 0)
				break;
			c_ -= (f + (c - c_) / vd) * vp;
			cnt++;
		}
	}
	printf("%d\n", cnt);
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

typedef enum ESCAPE_STAGES {
	EST_DRAGON_WAKE_UP,
	EST_DRAGON_REACH_PRINCESS,
	EST_DRAGON_BACK,
	EST_DRAGON_MAKE_CLEAN,
} EscapeStages;

int main(int argc, char **argv) {

	int vp;
	int vd;
	int t;
	int f;
	int c;

// 	vp = 5;		// predkosc ksiezniczki w milach na godzine
// 	vd = 8;		// predkosc smoka w milach na godzine
// 	t = 1;	    // czas po którym smok spostrzega ze ksiezniczka uciekla
// 	f = 2;	    // czas spedzony w skarbcu przez smoka na uporzadkowanie
// 	c = 100;	// liczba mil od cave'a smoka do zamku

	if( scanf("%d", &vp) == -1 ) return -1;
	if( scanf("%d", &vd) == -1 ) return -1;
	if( scanf("%d", &t) == -1 ) return -1;
	if( scanf("%d", &f) == -1 ) return -1;
	if( scanf("%d", &c) == -1 ) return -1;

	EscapeStages es = EST_DRAGON_WAKE_UP;
	double princessDistance = 0;
	double dragonDistance = 0;
	int numberOfDroppedDiamond = 0;
	int vc = (vd-vp);

	// if dragons speed is smaller or equal then princess', return 0 diamonds
	if(vc<=0) {
		printf("0\n");
		return 0;
	}

	while( princessDistance < c ) {
		switch(es) {
			case EST_DRAGON_WAKE_UP:
				princessDistance += vp*t;
				es = EST_DRAGON_REACH_PRINCESS;
				break;
			case EST_DRAGON_REACH_PRINCESS:
				princessDistance += (double)vp*(double)(princessDistance/(double)vc);
				dragonDistance = princessDistance;
				if(princessDistance<c) numberOfDroppedDiamond++;
				es = EST_DRAGON_BACK;
				break;
			case EST_DRAGON_BACK:
				princessDistance += (double)(dragonDistance/(double)vd)*(double)vp;
				dragonDistance = 0;
				es = EST_DRAGON_MAKE_CLEAN;
				break;
			case EST_DRAGON_MAKE_CLEAN:
				princessDistance += f*vp;
				es = EST_DRAGON_REACH_PRINCESS;
				break;
		};
	}

	printf("%d\n", numberOfDroppedDiamond);

    return 0;
}

#include<stdio.h>

int main(){

	int vp,vd,t,f,c;
	int i;

	scanf("%d\n%d\n%d\n%d\n%d",&vp,&vd,&t,&f,&c);

		if(vp>=vd){printf("0"); return 0;}

	double a = c/(vp+0.0);
	double dist=vp*t;
	double curr = t;
	int ruby=0;

	for(i=0;;i++){
		curr = curr+(dist/(vd-vp+0.0));
		if(curr>=a){break;}
		ruby++;
		curr = curr+(dist/(vd-vp+0.0))+f;
		dist = curr*vp;
	}

	printf("%d\n",ruby);

	return 0;
}

#include<stdio.h>
int main()
{
    int k=0;
float m,n,f,t,x=0,p=0,c;
scanf("%f%f%f%f%f",&m,&n,&t,&f,&c);
x=t*m;
next:
p=(x/(n-m));
if((p*n)>=c || m>n)
{
printf("%d",k);
goto dk;
}
else
{
k++;
x=x+(2*p*m+f*m);
goto next;
}
dk:
return(0);
}

#include <stdio.h>

int main(int argc, char *argv[])
{
		int b = 0;
		double vp, vd, t, f, c, d;

		scanf("%lf %lf %lf %lf %lf", &vp, &vd, &t, &f, &c);

		if(vp >= vd)
		{
			puts("0");
			return;
		}

		d = vd * vp * t / (vd - vp);
		while(d < c)
		{
			b ++;
			d = vd * (d + vp * (d / vd + f)) / (vd - vp);
		}

		printf("%d\n", b);

		return 0;
}

#include<stdio.h>

int main()
{
float vp,vd,f,c,t,i,j,d=0,t1;
int ans=0;
scanf("%f %f %f %f %f",&vp,&vd,&t,&f,&c);
if((vp>vd)||((vp==vd)&&(t>0)))
 {
 printf("0");
 return 0;
 }
d=vp*t;
d+=(d*vp)/(vd-vp);
while(1)
{
 //printf(" d= %d\n",d);
 if(d<c)
   ans++;
 else
  break;
d+=(vp*f+ ((d*vp)/vd));
d+=((d*vp)/(vd-vp));
}
printf("%d\n",ans);
return 0;
}

#include <stdio.h>
#include<math.h>
int main()
{
    int b=0;
    double t,p,d,f,c,sp=0,dt,backt;
    scanf("%lf%lf%lf%lf%lf",&p,&d,&t,&f,&c);
    if(p<d)
    {
        while(1)
        {
            sp+=t*p;
            if(sp>=c)
                break;
            dt=sp/(d-p);
            sp+=dt*p;
            if(sp>=c)
                break;
            else
            {
                b++;
                backt=sp/d;
                sp+=backt*p;
                t=f;
            }
        }
    }
    printf("%d\n",b);
    return 0;
}

#include<stdio.h>
main()
{
    double vp,vd,t,f,c,x,e,d;int g=0;
    scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&c);
    d=vp*t;
    c=c-d;
    if(vd>vp)
    {
    v:
    t=d/(vd-vp);
    e=vp*t;
    c=c-e;
    if(c>0)
    {
        g++;
        d=d+e;
        t=d/vd;
         d=d+(vp*(t+f));
         c=c-(vp*(t+f));
         goto v;
    }
    }
    printf("%d",g);
    return(0);
}

#include<stdio.h>
int main()
{
	float vp,vd,t,f,c;
	scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
	float distance=0;
	int i,count=0,flag=0;
	if(vp>=vd)
	{
		printf("0\n");
		return 0;
	}
	distance=vp*t;
	while(distance < c)
	{
		if(flag==1){
			count++;
	//		printf("%d ",count);
			flag=0;
			t+=f;
		}
		else{
			flag=1;
			t=distance/(vd-vp);
		}
		distance+=vp*t;
//		printf("%f\n",distance);
	}
	printf("%d\n",count);
	return 0;
}

#include<stdio.h>
int main()
{float vp,vd,vr,t,f,c,y,d=0,k=0,x;
scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
if(vd>vp)
vr=vd-vp;
else
{
    printf("0"); goto flag;
}
x=t*vp;d+=x;
while(d<c)
{
y=d/vr;
d+=y*vp;
if(d>=c)
break;
d+=y*vp;
k++;
d+=f*vp;
}
printf("%d",(int)k);
flag:
return 0;
}

#include<stdio.h>
int main(){
  float vp,vd,t,f,c;
  float phm,d=0,time=0;
  int bijous=0;
  scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
  for(phm=t*vp;;){
    //printf("%f\n",phm);
    if(vd<=vp)
      break;
    phm+=phm*vp/(vd-vp);
    if(phm>=c)
      break;
    else{
      phm+=f*vp+(phm/vd)*vp;
      bijous++;
    }

  }
  printf("%d",bijous);
  return 0;
}

#include<stdio.h>
int main () {
    int vp,vd,t,f,c,i,count;
    double t1,t2,c2;
    while (scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c)!=EOF) {
        count = 0;
        if (vp>=vd) {
            printf("0\n");
            continue;
        }
        t1 = c/vp;
        if (t>=t1) {
            printf("0\n");
            continue;
        }
        count = 0;
        c2 = t*vp+(double)(t*vp)/(vd-vp)*vp;
        while (1) {
            if (c2>=c) break;
            count ++;
            t2 = c2/vd+f;
            c2 += t2*vp;
            c2 += c2/(vd-vp)*vp;
        }
        printf("%d\n",count);
    }
    return 0;
}

#include <stdio.h>
int main()
{
    int vp,vd,t,f,c,num=0;
    double sd,sp,time;
    scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
    if(vp>=vd)
    {
        printf("0");
    }
    else
    {
        sp=t*vp;
        while(c>sp)
        {
            time=sp/(vd-vp);
            if((c-sp)/vp<=time)
            {
                break;
            }
            sp=sp+time*vp*2+f*vp;
            num++;
        }
        printf("%d",num);
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

int main()
{

///_____________________________________________________________________________________________________________////
///___________________________ 30  B. Escape
    int v_princess,v_dragon,start_time,repair_time,distance,cnt=0;
    scanf("%i %i %i %i %i",&v_princess,&v_dragon,&start_time,&repair_time,&distance);

    float x0=v_princess*start_time;
    float t0=start_time+x0/(v_dragon-v_princess); ///1st catch time
    x0=v_princess*t0;///1st catch distance
    while(x0<distance )
    {
        cnt++;
        t0=repair_time+x0/v_dragon; ///time to start chasing time
        x0=x0+v_princess*t0;        /// start chasing dis

        t0=x0/(v_dragon-v_princess); /// catch time
        x0=x0+v_princess*t0;            /// catch dis
    }
    if (x0>=distance && v_dragon> v_princess)
        printf("%i",cnt);
    else
        printf("0");
    return 0;
}

#include<stdio.h>
int main()
{
    double vp, vd, t, f, c ,tt,h,st=0.0;
    int  num = 0;
    scanf("%lf%lf%lf%lf%lf", &vp, &vd, &t, &f, &c);
    tt = c / vp;
    if (vp >= vd || t*vp >= (tt - t)*(vd - vp))
    {
        printf("%d",0);

    }
    else
    {
        while (st < tt)
        {
            ++num;
            h = t*vp / (vd - vp);
            t = t+2*h + f;
            st = t+ t*vp / (vd - vp);
        }
        printf("%d", num);
    }

    return 0;
}

#include <stdio.h>

int main() {

	int vp, vd, t, f, c;
	scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

	double tt = t;
	int cc = 0;
	while (1) {
		double t = vp*tt / (vd - vp);

		if (!(vd*t + 1e-9 < c))
			break;

		cc++;
		tt += 2*t + f;

	}

	printf("%d\n", cc);

	return 0;
}

#include<stdio.h>
//#include<conio.h>

int main()
{
     int k,l,m,n,d,i,count=0,j=1,p=0;
    int A[100001];
    scanf("%d",&k);
    scanf("%d",&l);
    scanf("%d",&m);
    scanf("%d",&n);
    scanf("%d",&d);
    count=k*m;
    while(count<d){
              count=count+k*(count/(l-k));
              if(count<d){
                          p++;
                          count=count+(k*((count/l)+n));
              }
    }

    printf("%d",p);

   // getch();
    return 0;
}

#include<stdio.h>
//#include<conio.h>

int main()
{
     int k,l,m,n,d,i,count=0,j=1,p=0;
    int A[100001];
    scanf("%d",&k);
    scanf("%d",&l);
    scanf("%d",&m);
    scanf("%d",&n);
    scanf("%d",&d);
    count=k*m;
    while(count<d){
              count=count+(count/(l-k));
              if(count<d){
                          p++;
                          count=count+(k*((count/l)+n));
              }
    }

    printf("%d",p);

   // getch();
    return 0;
}

#include<stdio.h>
//#include<conio.h>

int main()
{
     int k,l,m,n,d,i,count=0,j=1,p=0;
    int A[100001];
    scanf("%d",&k);
    scanf("%d",&l);
    scanf("%d",&m);
    scanf("%d",&n);
    scanf("%d",&d);
    count=k*m;
    if(l<k){
            printf("0");
    }else{
    while(count<d){
              count=count+k*(count/(l-k));
              if(count<d){
                          p++;
                          count=count+(k*((count/l)+n));
              }
    }

    printf("%d",p);
    }
   // getch();
    return 0;
}

#include<stdio.h>
//#include<conio.h>

int main()
{
     int k,l,m,n,d,i,count=0,j=1,p=0;
    int A[100001];
    scanf("%d",&k);
    scanf("%d",&l);
    scanf("%d",&m);
    scanf("%d",&n);
    scanf("%d",&d);
    count=k*m;
    if(l<=k){
            printf("0");
    }else{
    while(count<d){
              count=count+k*(count/(l-k));
              if(count<d){
                          p++;
                          count=count+(k*((count/l)+n));
              }
    }

    printf("%d",p);
    }
   // getch();
    return 0;
}

#include<stdio.h>
int main()
{
float vp,vd,t,f,c,t1,t2;
int cnt=0;
scanf("%f %f %f %f %f",&vp,&vd,&t,&f,&c);
float dp=c;
if(vp>=vd)
printf("0");
else
{while(dp>0)
{if(dp==c)
dp-=vp*t;
t1=(c-dp)/(vd-vp);
dp-=t1*vp;
if(dp>0)
cnt++;
t2=(c-dp)/vd+f;
dp-=t2*vp;
}}
printf("%d",cnt);
return(0);}

#include<stdio.h>
int main()
{
float vp,vd,t,f,c,t1,t2;
int cnt=0;
scanf("%f %f %f %f %f",&vp,&vd,&t,&f,&c);
float dp=c;
if(vp>=vd)
printf("0");
else
{while(dp>0)
{if(dp==c)
dp-=vp*t;
t1=(c-dp)/(vd-vp);
dp-=t1*vp;
if(dp>0)
cnt++;
t2=(c-dp)/vd+f;
dp-=t2*vp;
}}
if(cnt>0)
printf("%d",cnt);
return(0);}

#include<stdio.h>
#include<math.h>
main()
{
	int vp,vd,t,f,c;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
	int prinsum=c-vp*t,h,reg=0;
	if (vp<vd)
	{
	while (1)
	{
		h=(c-prinsum)/(vd-vp);
		prinsum-=h*vp;
		if (prinsum<=0) break;
		reg++;
        prinsum-=(h+f)*vp;
		if (prinsum<=0) break;
	}
	printf("%d\n",reg);
	}
	else printf("0\n");
	return 0;
}

#include<stdio.h>
#include<math.h>
main()
{
	int vp,vd,t,f,c;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
	int prinsum=c-vp*t,h,reg=0;
	if (vp<vd && prinsum>0)
	{
	while (1)
	{
		h=(c-prinsum)/(vd-vp);
		prinsum-=h*vp;
		if (prinsum<=0) break;
		reg++;
        prinsum-=(h+f)*vp;
		if (prinsum<=0) break;
	}
	printf("%d\n",reg);
	}
	else printf("0\n");
	return 0;
}

#include <stdio.h>

int main(){
    int vp, vd, t, f, c, res=0;
    float sp=0,time;
    float eps = 1e-7;
    scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);

    if(vp>=vd){
        printf("0");
        return 0;
    }

    sp = t*vp;
    while(1){
        time=sp/(vd-vp);
        sp+=time*vp;
        if(sp-c>=-eps){
            printf("%d",res);
            break;
        }
        res++;
        sp+=(sp*(f+vp/vd));
    }
    return 0;
}

#include<stdio.h>
int main()
{
    float vp,vd,t,f,d2,count,d1,k;
    int c;
    scanf("%f%f%f%f%d",&vp,&vd,&t,&f,&c);
    d1=vp*t;count=0;d2=0;k=0;
    for(;d1<c;)
    {
        d1+=1;
        d2+=vd/vp;k+=1/vp;
        if(d2>=d1 && d1<c)
        {
            //printf("%f %f\n",d1,d2);
            d2=0;d1+=vp*f+vp*k;
            k=0;
            count+=1;
        }
    }
    printf("%0.0f",count);
    return 0;
}

#include<stdio.h>
int main()
{
    double count=0;
    double d1,t,f,c,vp,vd;
    scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&c);
    d1=vp*t;
    while(d1<c)
    {
        t=d1/(vd-vp);
        d1+=t*vp;
        if(d1<c)
            count++;
        d1+=t*vp+f*vp;
    }
    printf("%0.0lf",count);
    return 0;
}

#include<stdio.h>
int main()
{
    float vp,vd,t,f,d2,count,d1,k;
    int c;
    scanf("%f%f%f%f%d",&vp,&vd,&t,&f,&c);
    d1=vp*t;count=0;d2=0;k=0;
    for(;d1<c;)
    {
        d1+=vp;
        d2+=vd;k++;
        if(d2>=d1 && d1<c)
        {
            //printf("%f %f\n",d1,d2);
            d2=0;d1+=vp*f+vp*k;
            k=0;
            count+=1;
        }
    }
    printf("%0.0f",count);
    return 0;
}

#include <stdio.h>
main()
{
	int vp,vd,t,f,c,C,s,ctr=0,t1,dist,t2;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&C);
	c=C;
	s=vp*t;
	c=c-s;
	t1=vp*t/(vd-vp);
	s=vp*t1;
	c=c-s;
	if(c>0)
	ctr++;
	dist=C-c;
	//printf("%d %d\n",dist,c);
	t2=t1;
	while(c>0)
	{
		t2=dist/vd;
		s=vp*(2*t2+f);
		t1=vp*(2*t2+f)/(vd-vp);
		s+=vp*t1;
		c=c-s;
		//printf("%d %d\n",dist,c);
		if(c>0)
		ctr++;
		dist=C-c;
	}
	if(ctr>1)
	printf("2\n");
	return 0;
}

#include <stdio.h>
main()
{
	int vp,vd,t,f,c,C,s,ctr=0,t1,dist,t2;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&C);
	c=C;
	s=vp*t;
	c=c-s;
	t1=vp*t/(vd-vp);
	s=vp*t1;
	c=c-s;
	if(c>0)
	ctr++;
	dist=C-c;
	//printf("%d %d\n",dist,c);
	t2=t1;
	while(c>0)
	{
		t2=dist/vd;
		s=vp*(2*t2+f);
		t1=vp*(2*t2+f)/(vd-vp);
		s+=vp*t1;
		c=c-s;
		//printf("%d %d\n",dist,c);
		if(c>0)
		ctr++;
		dist=C-c;
	}
	if(ctr>1)
	printf("2\n");
	else
	puts("1");
	return 0;
}

#include <stdio.h>
main()
{
	int vp,vd,t,f,c,C,s,ctr=0,t1,dist,t2;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&C);
	c=C;
	s=vp*t;
	c=c-s;
	t1=vp*t/(vd-vp);
	s=vp*t1;
	c=c-s;
	if(c>0)
	ctr++;
	dist=C-c;
	//printf("%d %d\n",dist,c);
	t2=t1;
	while(c>0)
	{
		s=vp*(2*t2+f);
		t1=vp*(2*t2+f)/(vd-vp);
		s+=vp*t1;
		c=c-s;
		//printf("%d %d\n",s,c);
		if(c>0)
		ctr++;
		t2+=t1;
	}
	printf("%d\n",ctr);
	return 0;
}

#include <stdio.h>
main()
{
	int vp,vd,t,f,c,C,s,ctr=0,t1,dist;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&C);
	c=C;
	s=vp*t;
	c=c-s;
	t1=vp*t/(vd-vp);
	s=vp*t1;
	c=c-s;
	if(c>0)
	ctr++;
	dist=C-c;
	while(c>0)
	{
		s=vp*(2*t1+f);
		t1=vp*(2*t+f)/(vd-vp);
		s+=vp*t1;
		c=c-s;
		if(c>0)
		ctr++;
	}
	printf("%d\n",ctr);
	return 0;
}

#include <stdio.h>
main()
{
	int vp,vd,t,f,c,C,s,ctr=0,t1,dist,t2;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&C);
	c=C;
	s=vp*t;
	c=c-s;
	t1=vp*t/(vd-vp);
	s=vp*t1;
	c=c-s;
	if(c>0)
	ctr++;
	dist=C-c;
	//printf("%d %d\n",dist,c);
	t2=t1;
	while(c>0)
	{
		t2=dist/vd;
		s=vp*(2*t2+f);
		t1=vp*(2*t2+f)/(vd-vp);
		s+=vp*t1;
		c=c-s;
		//printf("%d %d\n",dist,c);
		if(c>0)
		ctr++;
		dist=C-c;
	}
	printf("%d\n",ctr);
	return 0;
}

#include <stdio.h>
main()
{
	int vp,vd,t,f,c,C,s,ctr=0,t1,dist,t2;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&C);
	c=C;
	s=vp*t;
	c=c-s;
	t1=vp*t/(vd-vp);
	s=vp*t1;
	c=c-s;
	if(c>0)
	ctr++;
	dist=C-c;
	//printf("%d %d\n",dist,c);
	t2=t1;
	while(c>0)
	{
		t2=dist/vd;
		s=vp*(2*t2+f);
		t1=vp*(2*t2+f)/(vd-vp);
		s+=vp*t1;
		c=c-s;
		//printf("%d %d\n",s,c);
		if(c>0)
		ctr++;
		dist=C-c;
	}
	printf("%d\n",ctr);
	return 0;
}

#include <stdio.h>
main()
{
	double vp,vd,t,f,c,C,s,ctr=0,t1,dist,t2;
	scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&C);
	c=C;
	s=vp*t;
	c=c-s;
	t1=vp*t/(vd-vp);
	s=vp*t1;
	c=c-s;
	if(c>0)
	ctr++;
	dist=C-c;
	//printf("%lf %lf\n",dist,c);
	t2=t1;
	while(c>0)
	{
		t2=dist/vd;
		s=vp*(2*t2+f);
		t1=vp*(2*t2+f)/(vd-vp);
		s+=vp*t1;
		c=c-s;
		//printf("%lf %lf\n",dist,c);
		if(c>0)
		ctr++;
		dist=C-c;
	}
	printf("%.lf\n",ctr);
	return 0;
}

#include<stdio.h>
#include<stdlib.h>

int main(void)
{

     int vp,vd,t,f,c;
     scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);

     int dist=c;
     int bijou = 0;
     dist = c-t*vp;

     while(dist>0)
      {

          int gap  = c-dist;
          int time = gap/(abs(vd-vp));
          dist = dist-time*vp;
          if(dist>0)
            {
                bijou+=1;
                dist = dist-((c-dist)/vd+f)*vp;
            }

      }

         printf("%d\n",bijou);
         return 0;

}

#include<stdio.h>
#include<stdlib.h>

int main(void)
{

     float vp,vd,t,f,c;
     scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);

     float dist=c;
     int bijou = 0;
     dist = c-t*vp;

     while(dist>0)
      {

          float gap  = c-dist;
          float time = gap/(abs(vd-vp));
          dist = dist-time*vp;
          if(dist>0)
            {
                bijou+=1;
                dist = dist-((c-dist)/vd+f)*vp;
            }

      }

         printf("%d\n",bijou);
         return 0;

}

#include <stdio.h>
#include <stdlib.h>

void solve(){
	int vp,vd,t,f,c;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
	int tm = 0,s1 = 0,s2 = 0,Ans = 0;
	if(vp>=vd){
		puts("0");
		return;
	}
	s1 = vp*t;
	while(s1<c){
		tm++;t++;
		s1 = vp*t;
		s2 = tm*vd;
		printf("%d %d\n",s1,s2);
		if (s1<=s2 && s1<c) {
			Ans++;
			t += f+tm;
			tm = 0;
		}
	}
	printf("%d\n",Ans);
}
int main(){
	solve();
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

void solve(){
	int vp,vd,t,f,c;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
	int tm = 0,Ans = 0;
	if(vp>=vd){
		puts("0");
		return;
	}
	double s1 = 0,s2 = 0;
	s1 = (double) vp*t;
	while(s1<c){
		s1+=vp;
		s2+=vd;
		// printf("%f %f\n",s1,s2);
		if (s1<=s2 && s1<c) {
			Ans++;
			double tm = s1/vd;
			s1 += (vp *(tm+f));
			s2 = 0;
		}
	}
	printf("%d\n",Ans);
}
int main(){
	solve();
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

void solve(){
	int vp,vd,t,f,c;
	scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
	int tm = 0,s1 = 0,s2 = 0,Ans = 0;
	if(vp>=vd){
		puts("0");
		return;
	}
	s1 = vp*t;
	while(s1<c){
		tm++;t++;
		s1 = vp*t;
		s2 = tm*vd;
		if (s1<=s2 && s1<c) {
			Ans++;
			t += f+tm;
			tm = 0;
		}
	}
	printf("%d\n",Ans);
}
int main(){
	solve();
	return 0;
}

#include <stdio.h>

int main(void) {
	// your code goes here
	int vp,vd,t,f,c,k=0,sum;
	scanf("%d %d %d %d %d", &vp,&vd,&t,&f,&c);
	if(vp>=vd)
	{printf("0");
	return 0;}
	sum=t*vp;
	while(sum<c)
	{
		sum+=(sum/(vd-vp))*vp;
		if(sum>=c)
		break;
		k++;
		sum+=(sum/vd +f)*vp;
	}
	printf("%d", k);

	return 0;
}

#include <stdio.h>
#include <stdlib.h>

float vp , vd , escape_time , rest_time , distance ,d_p_travled , treasure  , catch_time , t_dragon;
int main()
{
scanf("%f\n%f\n%f\n%f\n%f",&vp,&vd,&escape_time,&rest_time,&distance);

//printf("%d %d %d %d %d",vp,vd,escape_time,rest_time,distance);
if(vp > vd)
printf("0");
else if( vp == vd && escape_time == 0)
{
printf("1");
}
else if( vp == vd )
{
printf("0");
}

else
{
for(float vr = vd-vp   , d_p_travled = vp*escape_time, d_remain = distance-d_p_travled ;
                                   d_p_travled < distance ;
                                   treasure++)
    {
      catch_time = d_p_travled/vr;
      d_p_travled += vp * catch_time;
      if(d_p_travled >= distance)
      break;
      t_dragon = (d_p_travled/vd) + rest_time ;
      d_p_travled += vp*t_dragon;
    }
 }
    printf("%.0f",treasure);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

float vp , vd , escape_time , rest_time , distance ,d_p_travled , treasure  , catch_time , t_dragon;
int main()
{
scanf("%f\n%f\n%f\n%f\n%f",&vp,&vd,&escape_time,&rest_time,&distance);

//printf("%d %d %d %d %d",vp,vd,escape_time,rest_time,distance);

for(float vr = vd-vp , d_p_travled = vp*escape_time, d_remain = distance-d_p_travled ;
                                   d_p_travled < distance ;
                                   treasure++)
    {
      catch_time = d_p_travled/vr;
      d_p_travled += vp * catch_time;
      if(d_p_travled >= distance)
      break;
      t_dragon = (d_p_travled/vd) + rest_time ;
      d_p_travled += vp*t_dragon;
    }
    printf("%.0f",treasure);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

float vp , vd , escape_time , rest_time , distance ,d_p_travled , treasure  , catch_time , t_dragon;
int main()
{
scanf("%f\n%f\n%f\n%f\n%f",&vp,&vd,&escape_time,&rest_time,&distance);

//printf("%d %d %d %d %d",vp,vd,escape_time,rest_time,distance);

for(float vr = vd-vp , d_p_travled = vp*escape_time, d_remain = distance-d_p_travled ;
                                  d_remain > 0 ;
                                  d_remain-= d_p_travled ,treasure++)
    {
      catch_time = d_p_travled/vr;
      d_p_travled += vp * catch_time;
      if(d_p_travled >= distance)
      break;
      t_dragon = (d_p_travled/vd) + rest_time ;
      d_p_travled += vp*t_dragon;
    }
    printf("%.0f",treasure);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

float vp , vd , escape_time , rest_time , distance ,d_p_travled , treasure  , catch_time , t_dragon;
int main()
{
scanf("%f\n%f\n%f\n%f\n%f",&vp,&vd,&escape_time,&rest_time,&distance);

//printf("%d %d %d %d %d",vp,vd,escape_time,rest_time,distance);

for(float vr = vd-vp , d_p_travled = vp*escape_time, d_remain = distance-d_p_travled ;
                                   d_p_travled < distance ;
                                   treasure++)
    {
      catch_time = d_p_travled/vr;
      d_p_travled += vp * catch_time;
      printf("d_p: %f ",d_p_travled);
      if(d_p_travled >= distance)
      break;
      t_dragon = (d_p_travled/vd) + rest_time ;
     printf("\tt_d: %f",t_dragon);
      d_p_travled += vp*t_dragon;
      printf("\td_p: %f\n",d_p_travled);
    }
    printf("%.0f",treasure);
    return 0;
}

#include <stdio.h>
int main()
{
    double p,d,t,f,c;
    double count;
    double dis,between,cave,ret;
    while (scanf("%lf%lf%lf%lf%lf",&p,&d,&t,&f,&c)!=EOF)
    {
        between=p*t;
        dis=c-between;
        cave=between;
        count=0;
        while(dis>0)
        {
            t=between/(d-p);
            dis-=p*t;
            if (dis<=0) break;
            count++;
            cave+=p*t;
            ret=cave/d;
            between=ret*p+f*p;
            dis-=between;
            between+=cave;
            cave=0;
        }
        printf("%d\n",(int)count);
    }
    return 0;
}

#include <stdio.h>
int main()
{
    double p,d,t,f,c;
    double count;
    double dis,between,cave,ret;
    while (scanf("%lf%lf%lf%lf%lf",&p,&d,&t,&f,&c)!=EOF)
    {
        dis=c-p*t;
        between=p*t;
        cave=p*t;
        count=0;
        while(dis>0)
        {
            t=between/(d-p);
            dis-=p*t;
            count++;
            if (dis<0) break;
            cave+=p*t;
            ret=cave/d;
            between=ret*p+f*p;
            dis-=between;
            cave=0;
        }
        printf("%d\n",(int)count-1);
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>

#define EPS 1e-10

int
main(int argc, const char *argv[])
{
    int vp, vd, t, f, c;
    double tz, td, to;

    scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

    if (vd <= vp) {
        printf("0\n");
        return 0;
    }

    int n = 0;

    tz = t * 1.0;
    while (1) {
        td = tz * ((vd * 1.0) / (vd - vp));
        to = tz + td;
        tz = to + td + (f * 1.0);
        if (to + EPS < (c / (vp * 1.0))) {
            n++;
        } else {
            break;
        }
    }

    printf("%d\n", n);

    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>

#define EPS 1e-10

int
main(int argc, const char *argv[])
{
    int vp, vd, t, f, c;
    double tz, td, to;

    scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

    if (vd <= vp) {
        printf("0\n");
        return 0;
    }

    int n = 0;

    tz = t * 1.0;
    td = tz * ((vd * 1.0) / (vd - vp));
    while (1) {
        to = tz + td;
        tz = to + td + (f * 1.0);
        if (to + EPS < (c / (vp * 1.0))) {
            n++;
        } else {
            break;
        }
    }

    printf("%d\n", n);

    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>

#define EPS 1e-10

int
main(int argc, const char *argv[])
{
    int vp, vd, t, f, c;
    double tz, td, to;

    scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

    int n = 0;

    tz = t * 1.0;
    td = tz * ((vd * 1.0) / (vd - vp));
    while (1) {
        to = tz + td;
        tz = to + td + (f * 1.0);
        if (to + EPS < (c / (vp * 1.0))) {
            n++;
        } else {
            break;
        }
    }

    printf("%d\n", n);

    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>

#define EPS 1e-10

int
main(int argc, const char *argv[])
{
    int vp, vd, t, f, c;
    double tz, td, to;

    scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

    if (vd <= vp) {
        printf("0\n");
        return 0;
    }

    int n = 0;

    tz = t * 1.0;
    td = tz * ((vd * 1.0) / (vd - vp));
    while (1) {
        to = tz + td;
        tz = to + td + (f * 1.0);
        if (to <= (c / (vp * 1.0))) {
            n++;
        } else {
            break;
        }
    }

    printf("%d\n", n);

    return 0;
}

#include<stdio.h>
int main()
{
  int vp1,vd1,t1,f1,c1,count;
   float dist,n,vp,vd,t,f,c;
   count=0;
   scanf("%d %d %d %d %d",&vp1,&vd1,&t1,&f1,&c1);
   vp=vp1;
   vd=vd1;
   t=t1;
   f=f1;
   c=c1;
   dist=vp*t;
   count=0;
   if(dist>=c)
    printf("%d",count);
   else if(vd>=vp)
    printf("%d",count);
   else
   {
     while(1)
     {
      n=(float)(dist)/(float)(vd-vp);
      dist+=(n*vp);
      if(dist>=c)
      {
       printf("%d",count);
       break;
      }
      count++;
      n=((float)(dist)/(float)(vd))+f;
      dist+=(n*vp);
     }
   }
 return 0;
}

#include <stdio.h>

int main()
{
     int vp, vd, t, f, c, sum = 1;
     double x, y;

     scanf("%d %d %d %d %d", &vp, &vd, &t, &f, &c);

     if (vp >= vd || vp * t >= c || vd * vp * t >= c * (vd - vp)) {
	  puts("0");

	  return 0;
     }

     x = (double)vp * t / (vd - vp);
     y = vp * (t + x);

     while (1) {
	  y += vp * (x + f);
	  x = y / (vd - vp);

	  if (y + vp * x >= c) break;

	  sum++;
     }

     printf("%d\n", sum);

     return 0;
}

#include <stdio.h>

int main()
{
     int vp, vd, t, f, c, sum = 1;
     double x, y;

     scanf("%d %d %d %d %d", &vp, &vd, &t, &f, &c);

     if (vp >= vd || vp * t >= c || vp * vp * t >= c * (vd - vp)) {
	  puts("0");

	  return 0;
     }

     x = (double)vp * t / (vd - vp);
     y = vp * (t + x);

     while (1) {
	  y += vp * (x + f);
	  x = y / (vd - vp);

	  if (y + vp * x >= c) break;

	  sum++;
     }

     printf("%d\n", sum);

     return 0;
}

#include <stdio.h>

int main() {
  int vp, vd, t, f, c;
  double sp, sd, buf_t;
  int b;

  scanf("%d%d%d%d%d", &vp, &vd, &t, &f, &c);

  sp = vp * t;
  sd = 0;
  b = 0;

  while (1) {
    buf_t = sp / (vd - vp);
    sp = sp + vp * buf_t;
    sd = vd * buf_t;
    if (sp >= c) break;
    b++;
    sd = 0;
    sp = sp + vp * (buf_t + f);
  }

  printf("%d", b);

  return 0;
}

#include <stdio.h>
int main (void){
  int vp, vd, t, f, c;
  scanf ("%d%d%d%d%d",&vp, &vd, &t, &f, &c);
  int bazmek = 0;
  double ubehla = t * vp;
  while (ubehla < c) {
    double za_jak_dlouho_se_potkali = (ubehla) / (vd - vp);
    ubehla = ubehla + vp * za_jak_dlouho_se_potkali;
    if (ubehla+0.000001 >= c) {
      break;
    } else {
      bazmek++;
      double jak_dlouho_se_vraci = ubehla / vd;
      ubehla = ubehla + vp * (jak_dlouho_se_vraci + f);
    }
  }
  printf("%d\n", bazmek);
  return 0;
}

#include <stdio.h>
int main (void){
  int vp, vd, t, f, c;
  scanf ("%d%d%d%d%d",&vp, &vd, &t, &f, &c);
  int bazmek = 0;
  double ubehla = t * vp;
  while (ubehla < c) {
    double za_jak_dlouho_se_potkali = (ubehla) / (vd - vp);
    ubehla = ubehla + vp * za_jak_dlouho_se_potkali;
    if (ubehla >= c) {
      break;
    } else {
      bazmek++;
      double jak_dlouho_se_vraci = ubehla / vd;
      ubehla = ubehla + vp * (jak_dlouho_se_vraci + f);
    }
  }
  printf("%d\n", bazmek);
  return 0;
}

#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main()
{
     float vp,vd,t,f,c,tt;
     int i,N=0;
    scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
   do
   {
       tt=(vp*t)/(vd-vp);
       if((tt*vd)<c)
           N++;
       t+=tt+tt+f;
   }while((vd*tt)<c);
   printf("%d",N);
     return 0;
}

#include <stdio.h>
#include <stdlib.h>

typedef enum ESCAPE_STAGES {
	EST_DRAGON_WAKE_UP,
	EST_DRAGON_REACH_PRINCESS,
	EST_DRAGON_BACK,
	EST_DRAGON_MAKE_CLEAN,
} EscapeStages;

int main(int argc, char **argv) {

// 	int vp = 1;     // predkosc ksiezniczki w milach na godzine
// 	int vd = 100;	// predkosc smoka w milach na godzine
// 	int t = 10;	    // czas po którym smok spostrzega ze ksiezniczka uciekla
// 	int f = 10;	    // czas spedzony w skarbcu przez smoka na uporzadkowanie
// 	int c = 1000;	// liczba mil od cave'a smoka do zamku

	int vp;
	int vd;
	int t;
	int f;
	int c;

	if( scanf("%d", &vp) == -1 ) return -1;
	if( scanf("%d", &vd) == -1 ) return -1;
	if( scanf("%d", &t) == -1 ) return -1;
	if( scanf("%d", &f) == -1 ) return -1;
	if( scanf("%d", &c) == -1 ) return -1;

	EscapeStages es = EST_DRAGON_WAKE_UP;
	double princessDistance = 0;
	double dragonDistance = 0;
	int numberOfDroppedDiamond = 0;
	int vc = (vd-vp);

	// if dragons speed is smaller or equal then princess', return 0 diamonds
	if(vc<=0) {
		printf("0\n");
		return 0;
	}

	while( princessDistance < c ) {
		switch(es) {
			case EST_DRAGON_WAKE_UP:
				princessDistance += vp*f;
				es = EST_DRAGON_REACH_PRINCESS;
				break;
			case EST_DRAGON_REACH_PRINCESS:
				princessDistance += (double)vp*(double)(princessDistance/(double)vc);
				dragonDistance = princessDistance;
				if(princessDistance<c) numberOfDroppedDiamond++;
				es = EST_DRAGON_BACK;
				break;
			case EST_DRAGON_BACK:
				princessDistance += (double)(dragonDistance/(double)vd)*(double)vp;
				dragonDistance = 0;
				es = EST_DRAGON_MAKE_CLEAN;
				break;
			case EST_DRAGON_MAKE_CLEAN:
				princessDistance += f*vp;
				es = EST_DRAGON_REACH_PRINCESS;
				break;
		};
	}

	printf("%d\n", numberOfDroppedDiamond);

    return 0;
}

#include<stdio.h>
int main()
{
int m,n,f,t,x=0,p=0,c,k=0;
scanf("%d%d%d%d%d",&m,&n,&t,&f,&c);
x=t*m;
next:
p=(x/(n-m));
if((p*n)>=c)
{
printf("%d",k);
goto dk;
}
else
{
k++;
x=x+(2*p*m+f*m);
goto next;
}
dk:
return(0);
}

#include<stdio.h>
int main()
{
    int k=0;
float m,n,f,t,x=0,p=0,c;
scanf("%f%f%f%f%f",&m,&n,&t,&f,&c);
x=t*m;
next:
p=(x/(n-m));
if((p*n)>=c)
{
printf("%d",k);
goto dk;
}
else
{
k++;
x=x+(2*p*m+f*m);
goto next;
}
dk:
return(0);
}

#include<stdio.h>

int main()
{
float vp,vd,f,c,t,i,j,d=0,t1;
int ans=0;
scanf("%f %f %f %f %f",&vp,&vd,&t,&f,&c);
d=vp*t;
d+=(d*vp)/(vd-vp);
while(1)
{
 //printf(" d= %d\n",d);
 if(d<c)
   ans++;
 else
  break;
d+=(vp*f+ ((d*vp)/vd));
d+=((d*vp)/(vd-vp));
}
printf("%d\n",ans);
return 0;
}

#include<stdio.h>

int main()
{
int vp,vd,f,c,t,i,j,ans=0,td=0,t1;

scanf("%d %d %d %d %d",&vp,&vd,&t,&f,&c);
td=vd*t;
t1=td/(vd-vp)+t;
while(1)
{
 //printf("t1 = %d and td= %d\n",t1,td);
 if(td<c)
   ans++;
 else
  break;
 t1+=td/(vd-vp);
td+=(vp*f+((t1*vp)));
}
printf("%d\n",ans);
return 0;
}

#include <stdio.h>
#include<math.h>
int main()
{
    int p,d,t,f,c,b=0,sp=0,dt,pt,backt;
    scanf("%d%d%d%d%d",&p,&d,&t,&f,&c);
    if(p>=d)
    {
        printf("0\n");
        return 0;
    }
    else
    {
        while(1)
        {
            sp+=t*p;
            if(sp>=c)
                break;
            dt=sp/(d-p);
            sp+=dt*p;
            if(sp>=c)
                break;
            else
            {
                b++;
                backt=sp/d;
                sp+=backt*p;
                t=f;
            }
        }
    }
    printf("%d\n",b);
    return 0;
}

#include<stdio.h>
int main()
{
	float vp,vd,t,f,c;
	scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
	float distance=0;
	int i,count=0,flag=0;
	if(vp>=vd)
	{
		printf("0\n");
		return 0;
	}
	distance=vp*t;
	while(distance < c)
	{
//		printf("%f\n",distance);
		distance+=vp*t;
		t=distance/(vd-vp);
		if(flag==1){
			count++;
			flag=0;
			t=t+f;
		}
		else
			flag=1;
	}
	printf("%d\n",count);
	return 0;
}

#include<stdio.h>
int main()
{
	float vp,vd,t,f,c;
	scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
	float distance=0;
	int i,count=0,flag=0;
	distance=vp*t;
	while(distance < c)
	{
//		printf("%f\n",distance);
		distance+=vp*t;
		t=distance/(vd-vp);
		if(flag==1){
			count++;
			flag=0;
			t=t+f;
		}
		else
			flag=1;
	}
	printf("%d\n",count);
	return 0;
}

#include<stdio.h>
int main()
{
	float vp,vd,t,f,c;
	scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
	float distance=0;
	int i,count=0,flag=0;
	if(vp>=vd)
	{
		printf("0\n");
		return 0;
	}
	distance=vp*t;
	while(distance < c)
	{
//		printf("%f\n",distance);
		t=distance/(vd-vp);
		if(flag==1){
			count++;
			flag=0;
			t=t+f;
		}
		else
			flag=1;
		distance+=vp*t;
	}
	printf("%d\n",count);
	return 0;
}

#include<stdio.h>
int main()
{float vp,vd,vr,t,f,c,y,d=0,k=0,x;
scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
vr=vd-vp;
x=t*vp;d+=x;
while(d<c)
{
y=d/vr;
d+=y*vp;
if(d>=c)
break;
d+=y*vp;
k++;
d+=f*vp;
}
printf("%d",(int)k);
return 0;
}

#include<stdio.h>
int main(){
  int vp,vd,t,f,c;
  int phm,dhm=0,time=0,bijous=0;
  scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
  for(phm=t*vp;phm<c;){
    if(dhm>=phm){
      bijous++;
      phm+=(dhm/vd)*vp;
      dhm=0;
      phm+=vp*f;
    }
    else{
      dhm+=vd;
      phm+=vp;
    }
    //printf("%d %d\n",dhm,phm);
  }
  printf("%d",bijous);
  return 0;
}

#include<stdio.h>
int main(){
  int vp,vd,t,f,c;
  int phm,dhm=0,time=0,bijous=0;
  scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
  for(phm=t*vp;phm<c;){
    if(dhm>=phm){
      bijous++;
      phm+=(phm/vd)*vp;
     // if(phm>=c)
      //  break;
      dhm=0;
      phm+=vp*f;
    }
    else{
      dhm+=vd;
      phm+=vp;
    }
    //printf("%d %d\n",dhm,phm);
  }
  printf("%d",bijous);
  return 0;
}

#include<stdio.h>
int main(){
  float vp,vd,t,f,c;
  float phm,d=0,time=0;
  int bijous=0;
  scanf("%f%f%f%f%f",&vp,&vd,&t,&f,&c);
  for(phm=t*vp;;){
    //printf("%f\n",phm);
    phm+=phm*vp/(vd-vp);
    if(phm>=c)
      break;
    else{
      phm+=f*vp+(phm/vd)*vp;
      bijous++;
    }

  }
  printf("%d",bijous);
  return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    x+=v1*t;
    while(x<c)
    {
       x+=v1*(x/(v2-v1));
       if(x<c)
        count++;
       x+=v1*(x/v2);
       x+=v1*f;
    }
    if(v1<=v2)
        printf("0\n");
    else
    printf("%d\n",count);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    double v1,v2,t,f,c,x=0,count=0;
    scanf("%lf%lf%lf%lf%lf",&v1,&v2,&t,&f,&c);

        x+=v1*t;
    while(x<c)
    {
       x+=v1*((double)x/(double)(v2-v1));
       if(x<c)
        count++;
       x+=v1*((double)x/(double)v2);
       x+=v1*f;
    }if(v1>=v2)
        printf("0\n");
    else {
    printf("%lf\n",count);}
    return 0;
}

#include <stdio.h>
int main()
{
    int vp,vd,t,f,c,num=-1;
    double sd,sp,s;
    scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
    if(vp>vd||vp*t==c)
    {
        printf("0");
    }
    else
    {
        sp=t*vp;
        while(c>sp)
        {
            num++;
            s=sp/(vd-vp);
            sp=sp+vp*s+(sp/vd)*vp+f*vp;
        }
        printf("%d",num);
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    x+=v1*t;
    while(x<c)
    {
       x+=v1*(x/(v2-v1));
       if(x<c)
        count++;
       x+=v1*(x/v2);
       x+=v1*f;
    }
    printf("%d\n",count);
    return 0;
}

#include <stdio.h>
int main()
{
    int i,i1,vp,vd,t,f,c,num=0;
    scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
    i1=0;
    for(i=t*vp;c>i;i=vp+i)
    {
        if(i1>0&&i1<vd)
        {
            i1=0;
        }
        if(i1>=i)
        {
            num++;
            i1=-(i+f*vd);
        }
        i1=i1+vd;
    }
    printf("%d",num);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    if(v1<=v2)
        printf("0\n");
    else {
        x+=v1*t;
    while(x<c)
    {
       x+=v1*(x/(v2-v1));
       if(x<c)
        count++;
       x+=v1*(x/v2);
       x+=v1*f;
    }
    printf("%d\n",count);}
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    if(v1>=v2)
        printf("0\n");
    else {
        x+=v1*t;
    while(x<c)
    {
       x+=v1*((double)x/(double)(v2-v1));
       if(x<c)
        count++;
       x+=v1*((double)x/(double)v2);
       x+=v1*f;
    }
    printf("%d\n",count);}
    return 0;
}

#include <stdio.h>
int main()
{
    int vp,vd,t,f,c,num=0;
    double sd,sp,s;
    scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
    if(vp>vd||vp*t==c)
    {
        printf("0");
    }
    else
    {
        sp=t*vp;
        while(c>sp)
        {
            s=sp/(vd-vp);
            if(c<=sp+vp*s)
            {
                break;
            }
            sp=sp+vp*s+(sp/vd)*vp+f*vp;
            num++;
        }
        printf("%d",num);
    }
    return 0;
}

#include <stdio.h>
int main()
{
    int i,i1,vp,vd,t,f,c,num=0;
    scanf("%d %d %d %d %d",&vp,&vd,&t,&f,&c);
    i1=0;
    for(i=t*vp;c>i;i=vp+i)
    {
        if(i1>=i)
        {
            num++;
            i1=-((i1*2)/vd+f-1)*vd;
        }
        i1=i1+vd;
    }
    printf("%d",num);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    x+=v1*t;
    while(x<c)
    {
       x+=v1*((double)x/(double)(v2-v1));
       if(x<c)
        count++;
       x+=v1*((double)x/(double)v2);
       x+=v1*f;
    }
    printf("%d\n",count);
    return 0;
}

#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
    double vp,vd,t,f,c;
    while(~scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&c))
    {
        double sum=vp*t;
        double xxx=sum;
        int cou=0;
        while(sum<c)
        {
            sum+=xxx*vp/(vd-vp);
            xxx=sum;
            if(sum<c)
                cou++;
            sum+=(xxx/vd+f)*vp;
            xxx=sum;
        }
        printf("%d\n",cou);
    }
    return 0;
}

#include <stdio.h>
int main()
{
    int i,i1,vp,vd,t,f,c,num=0;
    scanf("%d %d %d %d %d",&vp,&vd,&t,&f,&c);
    i1=0;
    for(i=t*vp;c>i;i=vp+i)
    {
        if(i1>=i)
        {
            num++;
            i1=-(i1+f*vd);
        }
        i1=i1+vd;
    }
    printf("%d",num);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    if(v1>=v2)
        printf("0\n");
    else {
        x+=v1*t;
    while(x<c)
    {
       x+=v1*(x/(v2-v1));
       if(x<c)
        count++;
       x+=v1*(x/v2);
       x+=v1*f;
    }
    printf("%d\n",count);}
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    x+=v1*t;
    while(x<c)
    {
       x+=v1*(x/(v2-v1));
       if(x<c&&count<2)
        count++;
        if(count>=2)
        {
           break;
        }
       x+=v1*(x/v2);
       x+=v1*f;
    }
    printf("%d\n",count);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    x+=v1*t;
    while(x<c)
    {
        if(count==0||count==1)
       x+=v1*(x/(v2-v1));
       if(x<c)
        count++;
       x+=v1*(x/v2);
       x+=v1*f;
    }
    printf("%d\n",count);
    return 0;
}

#include <stdio.h>
int main()
{
    int i,i1,i2,vp,vd,t,f,c,num=0;
    scanf("%d%d%d%d%d",&vp,&vd,&t,&f,&c);
    i1=0;
    i2=0;
    for(i=t*vp;c>i;i=vp+i)
    {
        if(i1>=i)
        {
            num++;
            i2=f+i1/vd;
            i1=0;
        }
        if(i2!=0)
        {
            i2--;
        }
        else
        {
            i1=i1+vd;
        }
    }
    printf("%d\n",num);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);

        x+=v1*t;
    while(x<c)
    {
       x+=v1*((double)x/(double)(v2-v1));
       if(x<c)
        count++;
       x+=v1*((double)x/(double)v2);
       x+=v1*f;
    }if(v1>=v2)
        printf("0\n");
    else {
    printf("%d\n",count);}
    return 0;
}

#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
    double vp,vd,t,f,c;
    while(~scanf("%lf%lf%lf%lf%lf",&vp,&vd,&t,&f,&c))
    {
        double sum=vp*t;
        double xxx=sum;
        int cou=0;
        while(sum<c)
        {
            sum+=(xxx*vp)/(vd-vp);
            xxx=sum;
            if(sum<c)
                cou++;
            sum+=(xxx/vd)*vp+f*vp;
            xxx=sum;
        }
        printf("%d\n",cou);
    }
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x=0,count=0;
    scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c);
    x+=v1*t;
    while(x<c)
    {
        if(count==0||count==1)
       x+=v1*(x/(v2-v1));
       if(x<c&&count<2)
        count++;
       x+=v1*(x/v2);
       x+=v1*f;
    }
    printf("%d\n",count);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int v1,v2,t,f,c,x,count;
    while(~scanf("%d%d%d%d%d",&v1,&v2,&t,&f,&c))
    {
    x=0;
    count=0;
    x+=v1*t;
    while(x<c)
    {
       x+=v1*((double)x/(double)(v2-v1));
       if(x<c)
        count++;
       x+=v1*((double)x/(double)v2);
       x+=v1*f;
    }
    printf("%d\n",count);}
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

int main()
{

///_____________________________________________________________________________________________________________////
///___________________________ 30  B. Escape
    int v_princess,v_dragon,start_time,repair_time,distance,cnt=0;
    scanf("%i %i %i %i %i",&v_princess,&v_dragon,&start_time,&repair_time,&distance);

    float x0=v_princess*start_time;
    float t0=start_time+x0/(v_dragon-v_princess); ///1st catch time
    x0=v_princess*t0;///1st catch distance
    while(x0<distance)
    {
        cnt++;
        t0=repair_time+x0/v_dragon; ///time to start chasing time
        x0=x0+v_princess*t0;        /// start chasing dis

        t0=x0/(v_dragon-v_princess); /// catch time
        x0=x0+v_princess*t0;            /// catch dis
    }
    if (x0>=distance)
        printf("%i",cnt);
    return 0;
}

#include<stdio.h>
int main()
{
    double vp, vd, t, f, c ,tt,h,st=0.0;
    int  num = 0;
    scanf("%lf%lf%lf%lf%lf", &vp, &vd, &t, &f, &c);
    tt = c / vp;
    if (vp>=vd||t*vp>=(tt-t)*(vd-vp))
        printf("%d", 0);
    else
    {
        while (st < tt)
        {
            ++num;
            h = t*vp / (vd - vp);
            t = t+2*h + f;
            st = t+ t*vp / (vd - vp);
        }
    }
    printf("%d", num);
    return 0;
}

#include<stdio.h>
int main()
{
    double vp, vd, t, f, c ,tt,h,st=0.0;
    int  num = 0;
    scanf("%lf%lf%lf%lf%lf", &vp, &vd, &t, &f, &c);
    tt = c / vp;
    if (vp>=vd||t*vp>=(tt-t)*(vd-vp))
        printf("%d", 00);
    else
    {
        while (st < tt)
        {
            ++num;
            h = t*vp / (vd - vp);
            t = t+2*h + f;
            st = t+ t*vp / (vd - vp);
        }
    }
    printf("%d", num);
    return 0;
}

#include<stdio.h>
int main()
{
    double vp, vd, t, f, c ,tt,h,st=0.0;
    int  num = 0;
    scanf("%lf%lf%lf%lf%lf", &vp, &vd, &t, &f, &c);
    tt = c / vp;
    if (vp >= vd || t*vp >= (tt - t)*(vd - vp))
    {
        printf("%d%d", 0,0);

    }
    else
    {
        while (st < tt)
        {
            ++num;
            h = t*vp / (vd - vp);
            t = t+2*h + f;
            st = t+ t*vp / (vd - vp);
        }
    }
    printf("%d", num);
    return 0;
}


Luke Skywalker got locked up in a rubbish shredder between two presses. R2D2 is already working on his rescue, but Luke needs to stay alive as long as possible. For simplicity we will assume that everything happens on a straight line, the presses are initially at coordinates 0 and L, and they move towards each other with speed v1 and v2, respectively. Luke has width d and is able to choose any position between the presses. Luke dies as soon as the distance between the presses is less than his width. Your task is to determine for how long Luke can stay alive.

The first line of the input contains four integers d, L, v1, v2 (1 ≤ d, L, v1, v2 ≤ 10 000, d < L) — Luke's width, the initial position of the second press and the speed of the first and second presses, respectively.

Print a single real value — the maximum period of time Luke can stay alive for. Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6.  Namely: let's assume that your answer is a, and the answer of the jury is b. The checker program will consider your answer correct, if .

NoteIn the first sample Luke should stay exactly in the middle of the segment, that is at coordinates [2;4], as the presses move with the same speed.In the second sample he needs to occupy the position . In this case both presses move to his edges at the same time.

#include<stdio.h>
int main(){
    double d,l,v1,v2;
    scanf("%lf %lf %lf %lf",&d,&l,&v1,&v2);
    printf("%.20lf",(l-d)/(v1+v2));
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int l, d, v1, v2;
    double x;
    scanf("%d %d %d %d", &d, &l, &v1, &v2);
    l = l - d;
    v1= v1 + v2;
    x = l/1.0;
    x = x/ v1;
    printf("%.20lf", x);
    return 0;
}

/* 1490126785896 */

#include <stdio.h>
int main()

{
    float d,l,v1,v2;
    float ans;
    scanf("%f %f %f %f",&d,&l,&v1,&v2);

    ans=(float)((l-d)/(v1+v2));

    printf("%.20f",ans);

    return 0;
}

#include <stdio.h>
#include <math.h>
int main()
{
    double d, l, v1, v2, x, y, z;
    scanf ("%lf%lf%lf%lf", &d, &l, &v1, &v2);
    x = v1 + v2;
    y = l - d;
    z = y / x;
    printf ("%lf", z);
    return 0;
}
/* 1504030961328 */

#include<stdio.h>

int main()
{
    int D, L, v1;
    double R, v2;
    scanf("%d %d %d %lf", &D, &L, &v1, &v2);
    R = (L - D) / (v1 + v2);
    if(R<0)
        {
        R = R * -1;
        }
    if(L<D)
        {
        R = 0.0;
        }
    printf("%.20lf\n", R);

    return 0;
}

#include<stdio.h>
int main()
{
    double d,L,v1,v2,achi,nai;
    scanf("%lf%lf%lf%lf",&d,&L,&v1,&v2);
    achi=L-d;
    nai=v1+v2;
    printf("%.6lf\n",achi/nai);
    return 0;
}

#include <stdio.h>

int main (void) {
	int d, l, v1, v2;
	scanf("%d %d %d %d", &d, &l, &v1, &v2);
	float ans = (l - d) * 1.0 / (v1 + v2);
	printf("%f", ans);
	return 0;
}

#include<stdio.h>
int main()
{
    double d,l,a,b;
    scanf("%lf%lf%lf%lf",&d,&l,&a,&b);
    double time;
    time=(l-d)/(a+b);
    printf("%lf\n",time);
    return 0;
}

#include<stdio.h>
int main()
{
    double l,d,v1,v2;
    scanf("%lf %lf %lf %lf",&d,&l,&v1,&v2);
    printf("%.8lf",(l-d)/(v1+v2));
    return 0;
}

#include <stdio.h>
int main()
{
	long long int a,b,c,d;
	double f;
	scanf("%lld%lld%lld%lld",&a,&b,&c,&d);
	f=(b-a)*1.0/(c+d);
	printf("%0.20f",f);
}

#include<stdio.h>
int main() {
    int d, L, v1, v2 ;
    scanf("%d %d %d %d", &d, &L, &v1, &v2) ;
    float t ;
    t = (L-d)/((v1+v2)*1.0) ;
    printf("%.23f", t) ;
    return 0 ;
}

#include<stdio.h>
int main()
{
	float a,b,c,d,e;
	scanf("%f%f%f%f",&a,&b,&c,&d);
    b=b-a;
    e=b/(d+c);
    printf("%.20f\n",e);
	return 0;
 }

#include<stdio.h>
int main ()
{
   double d,L,v1,v2,tempo;
   scanf("%lf %lf %lf %lf",&d,&L,&v1,&v2);
   tempo=((L-d)/(v1+v2));
   printf("%lf\n",tempo);
   return 0;
}
/* 1504115371192 */

#include<stdio.h>
int main()
{
    float v1,v2,d,l ;
    scanf("%f%f%f%f",&d,&l,&v1,&v2) ;
    printf("%f",(l-d)/(v1+v2)) ;
    return 0 ;
}

#include <stdio.h>

int main(void) {
	double d,l,v1,v2;
	double t;
	scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
	d=l-d;
	t=(double)(d/(v1+v2));
	printf("%0.18lf",t);
	// team harshit naman 3.7
	return 0;
}

#include <stdio.h>
int main ()
{
int d, l, v1, v2;
double tempototal;

scanf ("%d %d %d %d", &d, &l, &v1, &v2);

tempototal = (double)(l-d)/(double)(v1+v2);
printf ("%lf\n", tempototal);

return 0;
}

/* 1490020854472 */

#include <stdio.h>

int main()
{
    double s,l,v1,v2;
    scanf("%lf %lf %lf %lf",&s,&l,&v1,&v2);
    printf("%.20lf",(l-s)/(v1+v2));
    return 0;
}

#include<stdio.h>
int main()
{
int d,l,v1,v2;
float x;
scanf("%d%d%d%d",&d,&l,&v1,&v2);
x=(float)(l-d)/(float)(v1+v2);
printf("%f",x);
return(0);
}

#include <stdio.h>
int main() {
	int d, L, v1, v2;
	scanf("%d", &d);
	scanf("%d", &L);
	scanf("%d", &v1);
	scanf("%d", &v2);

	double t = (double) (L-d)/(v1 + v2);

	printf("%f", t);

	return 0;
}

#include<stdio.h>
int main(){
    double d,l,v1,v2,t;
    scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
    l=(l-d);
    v1=(v1+v2);
    t=(float)l/(float)v1;
    printf("%.20f",t);
    return 0;
}

#include <stdio.h>
int main()
{
    float d,l,v,w,s,u,r;
    scanf("%f %f %f %f",&d,&l,&v,&w);
    s = l - d;
    u = v + w;
    r = s / u;
    printf("%f",r);
    return 0;
}

#include<stdio.h>
int main()
{
    float d,l,v1,v2,y,z,p,q,i,j;
    scanf("%f %f %f %f",&d,&l,&v1,&v2);
    float x=(l-d)/(v1+v2);
    printf("%f\n",x);
}

#include <stdio.h>

int main() {
	int d, l, v1, v2;

	scanf("%d%d%d%d", &d, &l, &v1, &v2);
	printf("%.12lf\n", (double) (l - d) / (v1 + v2));
	return 0;
}

#include <stdio.h>

int main()

{ double d, l, v, w, t, q, r;

scanf(" %lf %lf %lf %lf", &d, &l, &v, &w);

t= (l-d);
q= (v+w);
r=t/q;
printf(" %.6lf", r);

return 0;

}

/* 1504030931338 */

#include<stdio.h>
main()
{
    double a, b, c, d, l, r, output;
    double r1, l1;
    scanf(" %lf %lf %lf %lf", &a, &b, &c, &d);
    l=b-a;
    output=l/(c+d);
    printf("%lf", output);
    return 0;

}

#include <stdio.h>
#include <stdlib.h>

double timeCalc(int input[]){
  int d = input[0];
  int L = input[1];
  int v1 = input[2];
  int v2 = input[3];

  double distToCover = L - d;
  double totalSpeed = v1 + v2;
  double timeLeft = distToCover/totalSpeed;

  return timeLeft;
}

int main(int argc, char *argv[argc]){
  int i;
  int size = 4;
  int *v;
  v = malloc(size * sizeof(int));
  for(i=0; i < size; i++)
    scanf("%d", &v[i]);

  double timeLeft;
  timeLeft = timeCalc(v);
  printf("%.*f", 16, timeLeft);
  printf("0000\n");

  return 0;
}

#include<stdio.h>
int main()
{
    double d,L,v1,v2;
    scanf("%lf %lf %lf %lf",&d,&L,&v1,&v2);
    double r;
    r=(L-d)/(v1+v2);
    printf("%lf",r);
}

#include <stdio.h>
#include <stdlib.h>

double timeCalc(int input[]){
  int d = input[0];
  int L = input[1];
  int v1 = input[2];
  int v2 = input[3];

  double distToCover = L - d;
  double totalSpeed = v1 + v2;
  double timeLeft = distToCover/totalSpeed;

  return timeLeft;
}

int main(int argc, char *argv[argc]){
  int i;
  int size = 4;
  int *v;
  v = malloc(size * sizeof(int));
  for(i=0; i < size; i++)
    scanf("%d", &v[i]);

  double timeLeft;
  timeLeft = timeCalc(v);
  printf("%.*f", 20, timeLeft);
  //printf("0000\n");

  return 0;
}

#include <stdio.h>
int main ()
{
    float d, L, V1, V2;
    float resposta;
    scanf("%f %f %f %f", &d, &L, &V1, &V2);
    resposta= (L-d)/(V1+V2);
    printf("%.20f\n", resposta);
    return 0;
}

/* 1490034068245 */

#include<stdio.h>
int  main()
{
	double  d, l, v1, v2,c,t;
	scanf("%lf",&d);
	scanf("%lf",&l);
	scanf("%lf",&v1);
	scanf("%lf",&v2);
	c=(v1+v2);
	t=(l-d)*v1/c;
	t=t/v1;
	printf("%.16lf",t);
    return 0;
}

#include <stdio.h>

int main()
{
	double d, l, v1, v2;
	scanf("%lf %lf %lf %lf", &d, &l, &v1, &v2);
	printf("%.20lf\n", (l - d) / (v1 + v2));
	return 0;
}

#include<stdio.h>
#include<string.h>

int main(){
    double n,j,i,flag=0,c=0,L,d,a,b;
    scanf("%lf%lf%lf%lf",&d,&L,&a,&b);
    printf("%lf",(L-d)/(a+b));
    return 0;
}

#include<Stdio.h>
int main()
{
    int d,l,v1,v2;
    scanf("%d",& d);
    scanf("%d",& l);
    scanf("%d",& v1);
    scanf("%d",& v2);
    double x=(double)(v1*(l-d))/(v1+v2);
    double t=(double)x/v1;
    printf("%lf", t);

}

#include <stdio.h>

int main(){
    int d, L, v1, v2;

    scanf("%d%d%d%d", &d, &L, &v1, &v2);

    printf("%f\n", (double)((double)(L-d)/(double)(v1+v2)));

    return 0;
}

#include <stdio.h>
int main ()
{
double l,d,v1,v2,t;
scanf("%lf",&d);
scanf("%lf",&l);
scanf("%lf",&v1);
scanf("%lf",&v2);
t=(l-d)/(v1+v2);
printf("%lf",t);
return 0;
}

#include<stdio.h>
int main()
{
    float d,l,v1,v2;
    scanf("%f %f %f %f",&d,&l,&v1,&v2);
    printf("%.20f\n",(l-d)/(v1+v2));
    return 0;
}

#include <stdio.h>

int main()
{
    double d, l2, v1, v2;
    double t;

    scanf("%lf %lf %lf %lf", &d, &l2, &v1, &v2);

    t = (l2 - d) / (v1 + v2);

    printf("%lf", t);

    return 0;
}

/* 1490128270726 */

#include <stdio.h>

int main()
{
    double s,l,v1,v2;
    scanf("%lf %lf %lf %lf",&s,&l,&v1,&v2);
    printf("%.20lf",(l-s)/(v1+v2));
    return 0;
}

#include<stdio.h>
int main()
{
    int d,l,v1,v2,v;
    double x,m;
    scanf("%d %d %d %d",&d,&l,&v1,&v2);
    v=v1+v2;
    m=l-d;
    x=m/v;
    printf("%f",x);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int d, L, v1, v2, vr;
    double t;

    scanf("%d %d %d %d", &d, &L, &v1, &v2);

    vr = v1 + v2;

    t = ((L-d)*1.0)/vr;

    printf("%lf\n",t);

    return 0;
}

/* 1504026016481 */

#include <stdio.h>
int main(){
	int l, d, v1, v2;
	float time = 0;
	scanf("%d %d %d %d", &d, &l, &v1, &v2);
	time = ((float)(l-d))/(v1+v2);
	printf("%f",time);
	return 0;
}

#include <stdio.h>
int main(){
    int d,L,v1,v2;
    scanf("%i%i%i%i",&d,&L,&v1,&v2);
    double a = (double)L-d;
    a /= (v1+v2);
    printf("%.8f",a);
    return 0-0-0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int l, d, v1, v2;
    double x;
    scanf("%d %d %d %d", &d, &l, &v1, &v2);
    l = l - d;
    v1= v1 + v2;
    x = l/1.0;
    x = x/ v1;
    printf("%.20lf", x);
    return 0;
}

/* 1490125917551 */

#include <stdio.h>

int main() {
    double luke = 0;
    double width = 0;
    double vel1 = 0;
    double vel2 = 0;
    scanf("%lf %lf %lf %lf", &luke, &width, &vel1, &vel2);
    printf("%lf", (width - luke) / (vel1 + vel2));
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main() {
    float d, L, v1, v2;
    scanf("%f", &d);
    scanf("%f", &L);
    scanf("%f", &v1);
    scanf("%f", &v2);
    printf("%.6f", abs(L - d) / (v1 + v2));
}

#include<stdio.h>
int main()
{
	int d,l,v1,v2;
	double t;
	scanf("%d%d%d%d",&d,&l,&v1,&v2);
	l-=d;
	t=(double)l/(v1+v2);
	printf("%f",t);
	return 0;
}

#include <stdio.h>
int main() {
	float d, L, v1, v2;
	scanf("%f %f %f %f", &d, &L, &v1, &v2);
	printf("%.20f", (L - d) / (v1 + v2));
	return 0;
}

#include<stdio.h>
int main()
{
    float d,L,v1,v2,s;
    scanf("%f %f %f %f",&d,&L,&v1,&v2);
    s=(L-d)/(v1+v2);
    printf("%f\n",s);
    return 0;
}

#include<stdio.h>
int main(){
    double d,l,v1,v2;
    scanf("%lf %lf %lf %lf",&d,&l,&v1,&v2);
    printf("%.15lf",(l-d)/(v1+v2));
    return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    float d,L,v1,v2;
    scanf("%d %d %d %d",&d,&L,&v1,&v2);
    printf("%f\n",(L-d)/(v1+v2));
return 0;
}

#include <stdio.h>
#define GET(a) scanf("%d", &(a))

int d, l, v1, v2;

int main(){
	GET(d);
	GET(l);
	GET(v1);
	GET(v2);
	printf("%f\n", 1.0 * (l - d) / (v1 + v2));
	return 0;
}

#include <stdio.h>
#include <float.h>
int main()
{
	float d,l,v1,v2;
	scanf("%f %f %f %f",&d,&l,&v1,&v2);
	float f=(l-d)/(v1+v2);
	printf("%f",f);
	return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c,d;
    float x;
    scanf("%d%d%d%d",&a,&b,&c,&d);

    x=(float)(b-a)/(c+d);
    printf("%.20f\n",x);
    return 0;
}

#include<stdio.h>

int main()
{
    int d,l,x,y;
    scanf("%d%d%d%d",&d,&l,&x,&y);
    double t=(double )(l-d)/(x+y);
    printf("%0.20f",t);
    return 0;
}

#include<stdio.h>
int main()
{
    double d,L,v1,v2,achi,nai;
    scanf("%lf%lf%lf%lf",&d,&L,&v1,&v2);
    achi=L-d;
    nai=v1+v2;
    printf("%.6lf\n",achi/nai);
    return 0;
}

#include<stdio.h>
int main()
{
    float d,l,v1,v2,y,z,p,q,i,j;
    scanf("%f %f %f %f",&d,&l,&v1,&v2);
    float x=(l-d)/(v1+v2);
    printf("%f\n",x);
}

#include <stdio.h>

main()
{
    int x, y, z, w;
    scanf("%d %d %d %d", &x, &y, &z, &w);
    float n=((float)(y-x)/(z+w));
    printf("%f", n);
}

#include <stdio.h>

int main (void) {
	int d, l, v1, v2;
	scanf("%d %d %d %d", &d, &l, &v1, &v2);
	float ans = (l - d) * 1.0 / (v1 + v2);
	printf("%f", ans);
	return 0;
}

#include<stdio.h>
int main()
{
    int d,l,v1,v2;
    float ans;
    scanf("%d %d %d %d",&d,&l,&v1,&v2);
    ans=(l-d)/(1.0*(v1+v2));
    printf("%f",ans);
    return 0;
}

#include<stdio.h>
main()
{
float d,l,v,s,a,b,c;
scanf("%f",&d);
scanf("%f",&l);
scanf("%f",&v);
scanf("%f",&s);
a=l-d;
b=v+s;
c=a/b;
printf("%f",c);
return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int d,l,v1,v2;
    scanf("%d%d%d%d",&d,&l,&v1,&v2);
    printf("%.6f",(l-d)/(v1+v2*1.0));
    return 0;
}

#include <stdio.h>
#include <math.h>

int main()
{
    double d, L, v1, v2;
    double time;
    scanf ("%lf %lf %lf %lf", &d, &L, &v1, &v2);
    time = (d-L)/(v1+v2);
    time = fabs(time);
    printf ("%lf", time);
    scanf ("%ld", v1);
    return 0;
}

#include <stdio.h>

int main(){

	int d,l,v1,v2;
    scanf("%d %d %d %d",&d,&l,&v1,&v2);
    int x  =l-d;
    int xx = v1+v2;

    printf("%.6lf\n",(double) x / (double) xx);

    return 0;
}
/* 1504113250069 */

#include <stdio.h>

int main(void) {
  double d,l,v1,v2,t;
scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);

t=(l-d)/(v1+v2);
printf("%lf",t);

	return 0;
}

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main(void){
int l,d,v1,v2;
double ans;
while(scanf("%d%d%d%d",&d,&l,&v1,&v2)!=EOF){
    ans=(double)(l-d)/(v1+v2);
    printf("%.6f\n",ans);
}

return 0;

}
/*2016-04-02 21:07:41.826*/

#include <stdio.h>
int main()

{
    float d,l,v1,v2;
    float ans;
    scanf("%f %f %f %f",&d,&l,&v1,&v2);

    ans=(float)((l-d)/(v1+v2));

    printf("%.20f",ans);

    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main() {
    float d, L, v1, v2;
    scanf("%f", &d);
    scanf("%f", &L);
    scanf("%f", &v1);
    scanf("%f", &v2);
    printf("%.6f", abs(L - d) / (v1 + v2));
}

#include<stdio.h>
int main() {
    int d, L, v1, v2 ;
    scanf("%d %d %d %d", &d, &L, &v1, &v2) ;
    float t ;
    t = (L-d)/((v1+v2)*1.0) ;
    printf("%.23f", t) ;
    return 0 ;
}

#include <stdio.h>
#include <string.h>
#include <math.h>
#define EPS 1E-6
int main()
{
    double d,L,v1,v2,t,add;
    double ans;
    while(~scanf("%lf%lf%lf%lf",&d,&L,&v1,&v2)){
        ans=0;
        add=1;
        t=L-d;
        while((v1+v2)*ans<t){
            while(((v1+v2)*(ans+add)>t||fabs((v1+v2)*(ans+add))<EPS)&&add>EPS)add/=10;
            ans+=add;
        }
        printf("%lf\n",ans);
    }
    return 0;
}

#include <stdio.h>

int main(){

    int D, L, v1;
    double R, v2;
    scanf("%d %d %d %lf", &D, &L, &v1, &v2);
    R = (L - D) / (v1 + v2);
    if (R < 0){
        R = R * -1;
    }
    if (L < D){
        R = 0.0;
    }
    printf("%.20lf\n", R);

    return 0;
}

/*
 * Lyak.c
 *
 * Copyright 2016 elmihailol <elmihailol@elmihailol-ubuntu>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 *
 *
 */

#include <stdio.h>

#include <math.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
	double d, l, v1, v2;
	scanf("%lf %lf %lf %lf", &d, &l, &v1, &v2);
	double t;
	t = (d-l)/(v1+v2);
	t = fabs(t);
	printf("%lf", t);
	return 0;
}

#include<stdio.h>
#include<math.h>
#include<string.h>

int main()
{
	int d, L, v1, v2;
	double t;
	scanf("%d %d %d %d", &d, &L, &v1, &v2);
	t=(double) abs(L-d)/(v1+v2);
	printf("%.6lf", (double)t);
}

#include<stdio.h>
int main(){
    double d,l,v1,v2,t;
    scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
    l=(l-d);
    v1=(v1+v2);
    t=(float)l/(float)v1;
    printf("%.20f",t);
    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c,d,l,m;
    double n;
    scanf("%d%d%d%d",&a,&b,&c,&d);
    l=b-a;
    m=c+d;
    n= l/(long double)m;
    printf("%lf",n);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
    int d,l,v1,v2;
    double ans;
    scanf("%d%d%d%d",&d,&l,&v1,&v2);
    ans=(double)(l-d)/(double)(v1+v2);
    printf("%lf",ans);
    return 0;
}

#include<stdio.h>
int main()
{
   float d,l,v1,v2,x;
   scanf("%d%d%d%d",&d,&l,&v1,&v2);
   x=(l-d)/(v1+v2);
   printf("%f",x);
   return 0;
}

#include <stdio.h>

int main()
{
    float velocity_left, velocity_right, length_of_corridor, width_of_luke;
    float relative_velocity, effective_distance, max_survival_time;

    scanf("%f %f %f %f", &width_of_luke, &length_of_corridor, &velocity_left, &velocity_right);

    relative_velocity = velocity_left + velocity_right;
    effective_distance = length_of_corridor - width_of_luke;
    max_survival_time = effective_distance/relative_velocity;

    printf("%f",max_survival_time);
    return 0;
}

#include<stdio.h>
int main()
{
    float d,l,v1,v2,s;
    scanf("%f %f %f %f",&d,&l,&v1,&v2);
    s=(l-d)/(v1+v2);
    printf("%f\n",s);
    return 0;
}

#include<stdio.h>

int main()	{
int d,l,v1,v2;
double ans,x1,x2;
scanf("%d%d%d%d",&d,&l,&v1,&v2);
x1=((l-d)/v2);
//printf("%f",x1);
x1=(x1*v1*v2)/(v2+v1);
//printf("%f\n",x1);
ans=x1/v1;
printf("%f",ans);
return 0;
}

#include<stdio.h>
int main()
{
    double d,l,v1,v2,y,z,p,q,i,j;
    scanf("%lf %lf %lf %lf",&d,&l,&v1,&v2);
    double x=(l-d)/(v1+v2);
    printf("%lf\n",x);
}

//anjali_ashish 3.17//
#include<stdio.h>

int main() {
	double l,d,v1,v2,r,i;
	printf("enter the value of l,d, v1,v2 respectively \n");

	  scanf("%lf%lf%lf%lf",&l,&d,&v1,&v2);
	  r=((l-d)/(v1+v2));
	  printf("%lf",r);
	return 0;
}

#include<stdio.h>
int main()
{
    double d,l,v1,v2;
    scanf("%lf %lf %lf %lf",&d,&l,&v1,&v2);
    printf("%.20lf\n",(l-d)/(v1+v2));
    return 0;
}

    #include<stdio.h>
    int main()
    {
        double d,L,v1,v2,s;
        scanf("%lf %lf %lf %lf",&d,&L,&v1,&v2);
        s=(L-d)/(v1+v2);
        printf("%.20lf\n",s);
        return 0;
    }

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
	double d, l, v1, v2;
	scanf("%lf %lf %lf %lf", &d, &l, &v1, &v2);
	double t;
	t = (d-l)/(v1+v2);
	t = abs(t);
	printf("%lf00000000000000", t);
	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int d,l,v1,v2;
    scanf("%d%d%d%d",&d,&l,&v1,&v2);
    printf("%,6f",(l-d)/(v1+v2*1.0));
    return 0;
}

#include<stdio.h>
int main()
{
    int d,L,v1,v2;
    double t ;
    scanf("%d%d%d%d", &d,&L,&v1,&v2);
    printf("%lf",t = (L-d)/(v1+v2));
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main(){
	double d, width, L, v1, v2, v;
	scanf("%lf %lf %lf %lf",&width, &L, &v1, &v2);
	L-=width;
	v=v1+v2;
	d=L/v;

	printf("%.20lf",d);
	return 0;
}

#include <stdio.h>

int main() {

	long double res;
	int luc, end, S1, S2;
	scanf("%d %d %d %d", &luc, &end, &S1, &S2);

	res = ((end - luc)/(S1+S2));

	printf("%le", res);
	return 0 ;
}

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
    double d,l,v1,v2;
    scanf("%lf %lf %lf %lf",&d,&l,&v1,&v2);

    double x1,x2,max=0,t1,t2;
    for(x1=0;x1+d <= l;x1=x1+.0001)
    {
        x2 = l-d-x1;
        t1 = (x1/v1);
        t2 = (x2/v2);
        if(t1-t2 <= .000000000001 )
        {
                max = t1;
        }
    }
    printf("%lf",max);
    return 0;
}

/*
 * Lyak.c
 *
 * Copyright 2016 elmihailol <elmihailol@elmihailol-ubuntu>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 *
 *
 */

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
	double d, l, v1, v2;
	scanf("%lf %lf %lf %lf", &d, &l, &v1, &v2);
	double t;
	t = (d-l)/(v1+v2);
	t = abs(t);
	printf("%lf", t);
	return 0;
}

#include <stdio.h>

int main()
{
    int d, L, v1, v2;
    char t;
    double dtime;
    scanf("%d %d %d %d", &d, &L, &v1, &v2);
    printf("%d %d %d %d", d, L, v1, v2);
    //if ( d < 1 || v2 > 10000 || d >= L)
    //   return -1;
    dtime = (L / (v1 + v2));
    printf("%f", dtime);
    scanf("%c", &t);
    return 0;
}

#include <stdio.h>

int main() {

	double res;
	int luc, end, S1, S2;
	scanf("%d %d %d %d", &luc, &end, &S1, &S2);

	res = ((end - luc)/(S1+S2));

	printf("%f", res);
	return 0 ;
}

#include<stdio.h>
int main()
{
    int d,L,v1,v2;
    scanf("%d %d %d %d",&d,&L,&v1,&v2);
    double r;
    r=(L-d)/(v1+v2);
    printf("%lf",r);
}

#include<stdio.h>

main()
{
    double d,l,v1,v2;
    scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
    printf("%.20lf",((l - d)/(v1 + v2)));
    return 0;

}

    #include<stdio.h>
    int main()
    {
        int d,L,v1,v2;
        float s;
        scanf("%d %d %d %d",&d,&L,&v1,&v2);
        s=(L-d)/(v1+v2);
        printf("%.25f\n",s);
        return 0;
    }

#include <stdio.h>
#include <stdlib.h>

int main(){
	double d, width, L, v1, v2, v;
	scanf("%lf %lf %lf %lf",&width, &L, &v1, &v2);
	L-=width;
	v=v1+v2;
	d=L/v;
	printf("%.20lf\n",d);
	return 0;
}

//624A.c
#include<stdio.h>
int main()
{
	int d,l,vone,vtwo;
	scanf("%d %d %d %d",&d,&l,&vone,&vtwo);

	int a;
	a=l-d;
	int b;
	b=vone+vtwo;

	float ans;
	ans=(float)(a/b);

	printf("%f\n",ans);

	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main()
{   int d,L,v1,v2;
    scanf("%d%d%d%d",&d,&L,&v1,&v2);
    double t;

    t=(L-d)/(v1+v2);

    printf("%lf\n",t);
    return 0;
}

#include<stdio.h>
int main()
{
int d,l,v,s;
float a,b,c;
printf("enter value of d,l,v,s");
scanf("%d",&d);
scanf("%d",&l);
scanf("%d",&v);
scanf("%d",&s);
a=l-d;
b=v+s;
c=a/b;
printf("%f",c);
return 0;
}

//gaurav 3.13//
#include<stdio.h>
int main()
{
double d,l,v1,v2,t;
printf("enter the values of d,l,v1,v2");
scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
t=((l-d)/(v2+v1));
printf("\n\nthe time is %lf...",t);
return 0;
}

#include <stdio.h>

int main(void) {
	// your code goes here
	// team 3.6(abhishek sharma and akash patel,problem number is 4)
	int d,l,v1,v2;

	float t;

	scanf("%d%d%d%d",&d,&l,&v1,&v2);
	t=(l-d)/(v1+v2);

	printf("%f",t);

	return 0;
}

/*team no. 1.3
name - Suryansh Singh
	anurag shakya*/
#include<stdio.h>
int main()
{
int v1,v2,d,l,z;
double t=0,y,a;
//printf("enter velocities of both");
scanf("%d%d",&v1,&v2);
//printf("enter the coordinates of Soti");
scanf("%d",&l);
//printf("enter distansce between them");
scanf("%d",&d);
z=v1+v2;
while(l>(z+d))
{
l=l-z;
t++;
}
a=l-d;
y=a/(z);
t=t+y;
printf("%lf",t);
return(0);
}

#include <stdio.h>
int main(void) {
int d,L,v1,v2,t,x,r;              //1.8
printf("enter distance L: ");     //Tarun garg and Vaibhav sharma
scanf("%d",&L);
printf("\n enter distance d: ");
scanf("%d",&d);
printf("\n enter velocity of thakur(v1): ");
scanf("%d",&v1);
printf("\n enter velocity of soti(v2): ");
scanf("%d",&v2);
r=v1/v2;
x=((L-d)*r)/(1+r);
t=x/v1;
printf("\ntime after they have to stop= %d",t);
return 0;
}

#include<stdio.h>
int main()
{
    double d,l,v1,v2,y,z,p,q,i,j;
    scanf("%lf %lf %lf %lf",&d,&l,&v1,&v2);
    double x=(l-d)/(v1+v2);
    printf("%lf\n",x);
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int d,l,v1,v2;
    scanf("%d%d%d%d",&d,&l,&v1,&v2);
    printf("%,6f",(l-d)/(v1+v2*1.0));
    return 0;
}

#include<stdio.h>

int main()
{
    double d, l, v1, v2;
    scanf("%lf %lf %lf %lf",&d, &l, &v1, &v2);

    printf("%.20lf\n", (l-d)/(v1+v2));

    return 0;
}

#include<stdio.h>

main()
{
    double d,l,v1,v2,result;
    scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
    result=abs((l - d)/(v1 + v2));
    printf("%.20lf",result);
    return 0;

}

#include<stdio.h>
int main()
{
   double  d,l,v1,v2;
scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
printf("%.15lf",(l-d)/(v1+v2));
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long double c;
    int L, d, v1, v2;
    scanf("%i %i %i %i", &d, &L, &v1, &v2);
    c=((long double)(L-d))/(v1+v2);
    printf("%llf", c);
    return 0;
}

#include<stdio.h>
int main()
{
    double d,l,v1,v2;
    scanf("%ld %ld %ld %ld",&d,&l,&v1,&v2);
    printf("%0.9lf\n",(l-d)/(v1+v2));
    return 0;
}

#include<stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]){
	int width, L, v1, v2, v;
	double d;
	scanf("%d %d %d %d",&width, &L, &v1, &v2);
	L-=width;
	v=v1+v2;
	d=L/v;

	printf("%.20lf",d);
	return 0;
}

#include<stdio.h>
int main()
{
    double d,l,v1,v2;
    scanf("%lf %lf %lf %lf",&d,&l,&v1,&v2);
    printf("%.20lf\n",(l-d)/(v1+v2));
    return 0;
}

    #include<stdio.h>
    int main()
    {
        double d,L,v1,v2,s;
        scanf("%lf %lf %lf %lf",&d,&L,&v1,&v2);
        s=(L-d)/(v1+v2);
        printf("%.20lf\n",s);
        return 0;
    }

#include <stdio.h>

int main (void) {
	int d, l, v1, v2;
	scanf("%d %d %d %d", &d, &l, &v1, &v2);
	float ans;
	ans = (l - d) / (v1 + v2);
	printf("%f", ans);
	return 0;
}

#include <stdio.h>
int main()
{
    double x,y,a,b;
    scanf("%lf %lf %lf %lf",&x,&y,&a,&b);
    printf("%.22lf",(x-y)/(a+b));
    return 0;
}

#include <stdio.h>

int main(void) {

	int d, L, v1, v2;
	double time;

	scanf("%d %d %d %d", &d, &L, &v1, &v2);

	time = (L-d)/(v1+v2);
	printf("%f", time);

	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]){
	int width, L, v1, v2, v;
	double d;
	scanf("%d %d %d %d",&width, &L, &v1, &v2);
	L-=width;
	v=v1+v2;
	d=(double)L/v;

	printf("%.20lf",d);
	return 0;
}

#include <stdio.h>

int main() {
    long double luke = 0;
    long double width = 0;
    long double vel1 = 0;
    long double vel2 = 0;
    scanf("%Lf %Lf %Lf %Lf", &luke, &width, &vel1, &vel2);
    printf("%Lf", (width - luke) / (vel1 + vel2));
    return 0;
}

#include <stdio.h>

int main()
{
	int d, l, v1, v2;

//	freopen("input.txt", "r", stdin);

	scanf("%d %d %d %d", &d, &l, &v1, &v2);

	printf("%lf", (double)(l - d) / (v1 + v2));
}

/*team no. 1.3
name - Suryansh Singh
	anurag shakya*/
#include<stdio.h>
int main()
{
int v1,v2,d,l,z;
double t=0,y,a;
//printf("enter velocities of both");
scanf("%d%d",&v1,&v2);
//printf("enter the coordinates of Soti");
scanf("%d",&l);
//printf("enter distansce between them");
scanf("%d",&d);
if(d<l)
{
z=v1+v2;
while(l>(z+d))
{
l=l-z;
t++;
}
a=l-d;
y=a/(z);
t=t+y;
printf("%lf",t);
}
else
printf("wrong input");
return(0);
}

#include<stdio.h>
int main()
{
    double d,l,a,b;
    double c;
    scanf("%lf %lf %lf %lf",&d,&l,&a,&b);
    c=(l-d)/(a+b);
    printf("%.20lf",c);
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    long double c;
    int L, d, v1, v2;
    scanf("%i %i %i %i", &d, &L, &v1, &v2);
    c=((long double)(L-d))/(v1+v2);
    printf("%Lf", c);
    return 0;
}

#include <stdio.h>
int main(){
    double d,L,v1,v2;
    scanf("%f %f %f %f",&d,&L,&v1,&v2);
    printf("%.8f",(L-d)/(v1+v2));
    return 0-0-0;
}

#include<stdio.h>

int main()
{
	long double d, l, v1, v2;
	scanf("%Lf %Lf %Lf %Lf", &d, &l, &v1, &v2);
	printf("%Lf\n", (l - d) / (v1 + v2));
	return(0);
}

#include <stdio.h>
int main() {
	double d, L, v1, v2;
	scanf("%d", &d);
	scanf("%d", &L);
	scanf("%d", &v1);
	scanf("%d", &v2);

	double t = (L-d)/(v1 + v2);

	printf("%f", t);

	return 0;
}

#include <stdio.h>
#include <stdlib.h>

int main(){
	double d, width, L, v1, v2, v;
	scanf("%lf %lf %lf %lf",&width, &L, &v1, &v2);
	L-=width;
	v=v1+v2;
	d=L/v;
	printf("%lf\n",d);
	return 0;
}

#include <stdio.h>
#include <string.h>
#include <math.h>
#define EPS 1E-6
int main()
{
    double d,L,v1,v2,a,b;
    double ans;
    while(~scanf("%lf%lf%lf%lf",&d,&L,&v1,&v2)){
        ans=0.0;
        a=0.0;
        b=L;
        while(a+d<b){
            ans+=0.00001;
            a=v1*ans;
            b=L-v2*ans;
        }
        printf("%lf\n",ans);
    }
    return 0;
}

#include<stdio.h>   //AA06( 21/ 04/ 20) If u see my code, Have a Good Day! (^_^)
#include<math.h>

int main()
{
    int d, L, v1, v2;
    double x, y;

    scanf("%d %d %d %d", &d, &L, &v1, &v2);

    x =(double)(L - d)/ (v1 + v2);

    y = fabs(x);

    printf("%.20lf\n", y);

    return 0;
}

#include <stdio.h>

int main()
{
    int d, L, v1, v2;
    char t;
    double dtime;
    scanf("%d %d %d %d", &d, &L, &v1, &v2);
    if ( d < 1 || v2 > 10000 || d >= L)
       return -1;
    dtime = (L / (v1 + v2));
    printf("%f", dtime);
    return 0;
}

#include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d %d %d %d",&a,&b,&c,&d);
float ans=(b-a)/(c+d);
printf("%f",ans);

}

#include <stdio.h>

int main() {

	double res;
	int luc, end, S1, S2;
	scanf("%d %d %d %d", &luc, &end, &S1, &S2);

	res = ((end - luc)/(S1+S2));

	printf("%f", res);
	return 0 ;
}

#include<stdio.h>
main()
{
    float a, b, c, d, l, r, output;
    float r1, l1;
    scanf(" %f %f %f %f", &a, &b, &c, &d);
    l=b-a;
    for(r=1; r==r; r++)
        {
            if(l>=(c*r+d*r))
            {
                break;
            }

        }
        if(l==(c*r+d*r))
        {
            r1=(float)r;
            printf("%f", r1);
        }
        else
        {
            output=(l-(c*(r-1)+d*(r-1)));
            l=(output/(c+d));
            printf("%f", l+r);
        }
    return 0;

}

#include <stdio.h>

int main (void) {
	int d, l, v1, v2, ans;
	scanf("%d %d %d %d", &d, &l, &v1, &v2);
	ans = (l - d) / (v1 + v2);
	if ((l - d) % (v1 + v2) != 0) ans++;
	printf("%d", ans);
	return 0;
}

#include <stdio.h>
void quicksort(int b[],int start,int end);
int partition(int b[],int start,int end);
int main(void)
{
int a[100000],i,j,n;
long long int sum=0;
scanf("%d",&n);

for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
sum=sum+a[i];
}

if(sum%2==0)
{
    printf("%I64d",sum);
    return 0;
}

else
{
int start=0,end=n-1;
quicksort(a,start,end);
    for(i=0;i<n;i++)
    {
        if(a[i]%2!=0)
        {
            sum=sum-a[i];
            break;
        }
    }
printf("%I64d",sum);

}
return 0;

}

void quicksort(int b[],int start,int end)
{
int pindex;
if(start<end)
{
pindex=partition(b,start,end);
quicksort(b,start,pindex-1);
quicksort(b,pindex+1,end);
}

}

int partition(int b[],int start,int end)
{
int pivot=b[end],temp,temp1;
int pindex=start;
int i;
for(i=start;i<=end-1;i++)
{
if(b[i]<=pivot)
{
temp=b[i];
b[i]=b[pindex];
b[pindex]=temp;
pindex++;
}
}

temp1=b[end];
b[end]=b[pindex];
b[pindex]=temp1;
return pindex;
}

#include<stdio.h>
int main ()
{
   double d,L,v1,v2,tempo;
   scanf("%lf%lf%lf",&d,&L,&v1,&v2);
   tempo=((v1+v2)/(L-d));
   printf("%lf\n",tempo);
    return 0;
}

/* 1504113861606 */

#include<stdio.h>
int main()
{

    double d,l,v1,v2,a,b;
    scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
    a=l-d;
    b=v1+v2;
    printf("%.18lf",a/b);

}

#include <stdio.h>

int main() {

	double res;
	int luc, end, S1, S2;
	scanf("%d %d %d %d", &luc, &end, &S1, &S2);

	res = ((end - luc)/(S1+S2));

	printf("%lf", res);
	return 0 ;
}

/*team no. 1.3
name - Suryansh Singh
	anurag shakya*/
#include<stdio.h>
int main()
{
int v1,v2,d,l,z;
double t=0,y,a;
printf("enter velocities of both");
scanf("%d%d",&v1,&v2);
printf("enter the coordinates of Soti");
scanf("%d",&l);
printf("enter distansce between them");
scanf("%d",&d);
if(d<l)
{
z=v1+v2;
while(l>(z+d))
{
l=l-z;
t++;
}
a=l-d;
y=a/(z);
t=t+y;
printf("time is %lf",t);
}
else
printf("wrong input");
return(0);
}

#include<stdio.h>
int main ()
{
   double d,L,v1,v2,tempo;
   scanf("%lf%lf%lf",&d,&L,&v1,&v2);
   tempo=((L-d)/(v1+v2));
   printf("%lf\n",tempo);
   return 0;
}

/* 1504114732498 */

#include<stdio.h>
int main()
{
    int d,L,v1,v2;
    double t ;
    scanf("%d%d%d%d", &d,&L,&v1,&v2);
    t = (L-d)/(v1+v2);
    printf("%lf",t);
    return 0;
}

#include<stdio.h>
main()
{
int d,l,v,s;
float a,b,c;
printf("enter value of d,l,v,s");
scanf("%d",&d);
scanf("%d",&l);
scanf("%d",&v);
scanf("%d",&s);
a=l-d;
b=v+s;
c=a/b;
printf("%f",c);
return(0);
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int L, d, v1, v2;
    long double c;
    scanf("%i%i%i%i", &d, &L, &v1, &v2);
    c=((double)(L-d))/(v1+v2);
    printf("%Lf", c);
    return 0;
}

#include<stdio.h>
#include<math.h>
#include<string.h>

int main()
{
	double d, L, v1, v2;
	double t;
	scanf("%lf %lf %lf %lf", &d, &L, &v1, &v2);
	t=abs(L-d)/(v1+v2);
	printf("%.6lf", t);
}

#include <stdio.h>

int main()
{
	int d, l, v1, v2;

//	freopen("input.txt", "r", stdin);

	scanf("%d %d %d %d", &d, &l, &v1, &v2);

	printf("%lf", (double)(l - d) / (v1 + v2));
}

#include<stdio.h>
int main()
{

    float d,l,v1,v2,a,b;
    scanf("%lf%lf%lf%lf",&d,&l,&v1,&v2);
    a=l-d;
    b=v1+v2;
    printf("%.10lf",a/b);

}

#include <stdio.h>
#include <stdlib.h>

int main()
{   int d,L,v1,v2;
    scanf("%d%d%d%d",&d,&L,&v1,&v2);
    double t;

    t=(L-d)/(v1+v2);

    printf("%lf\n",t);
    return 0;
}