Problem: It's a beautiful April day and Wallace is playing football with his friends. But his friends do not know that Wallace actually stayed home with Gromit and sent them his robotic self instead. Robo-Wallace has several advantages over the other guys. For example, he can hit the ball directly to the specified point. And yet, the notion of a giveaway is foreign to him. The combination of these features makes the Robo-Wallace the perfect footballer — as soon as the ball gets to him, he can just aim and hit the goal. He followed this tactics in the first half of the match, but he hit the goal rarely. The opposing team has a very good goalkeeper who catches most of the balls that fly directly into the goal. But Robo-Wallace is a quick thinker, he realized that he can cheat the goalkeeper. After all, they are playing in a football box with solid walls. Robo-Wallace can kick the ball to the other side, then the goalkeeper will not try to catch the ball. Then, if the ball bounces off the wall and flies into the goal, the goal will at last be scored.

Your task is to help Robo-Wallace to detect a spot on the wall of the football box, to which the robot should kick the ball, so that the ball bounces once and only once off this wall and goes straight to the goal. In the first half of the match Robo-Wallace got a ball in the head and was severely hit. As a result, some of the schemes have been damaged. Because of the damage, Robo-Wallace can only aim to his right wall (Robo-Wallace is standing with his face to the opposing team's goal).

The football box is rectangular. Let's introduce a two-dimensional coordinate system so that point (0, 0) lies in the lower left corner of the field, if you look at the box above. Robo-Wallace is playing for the team, whose goal is to the right. It is an improvised football field, so the gate of Robo-Wallace's rivals may be not in the middle of the left wall.

<image>

In the given coordinate system you are given: 

  * y1, y2 — the y-coordinates of the side pillars of the goalposts of robo-Wallace's opponents; 
  * yw — the y-coordinate of the wall to which Robo-Wallace is aiming; 
  * xb, yb — the coordinates of the ball's position when it is hit; 
  * r — the radius of the ball. 



A goal is scored when the center of the ball crosses the OY axis in the given coordinate system between (0, y1) and (0, y2). The ball moves along a straight line. The ball's hit on the wall is perfectly elastic (the ball does not shrink from the hit), the angle of incidence equals the angle of reflection. If the ball bounces off the wall not to the goal, that is, if it hits the other wall or the goal post, then the opposing team catches the ball and Robo-Wallace starts looking for miscalculation and gets dysfunctional. Such an outcome, if possible, should be avoided. We assume that the ball touches an object, if the distance from the center of the ball to the object is no greater than the ball radius r.

Input

The first and the single line contains integers y1, y2, yw, xb, yb, r (1 ≤ y1, y2, yw, xb, yb ≤ 106; y1 < y2 < yw; yb + r < yw; 2·r < y2 - y1).

It is guaranteed that the ball is positioned correctly in the field, doesn't cross any wall, doesn't touch the wall that Robo-Wallace is aiming at. The goal posts can't be located in the field corners.

Output

If Robo-Wallace can't score a goal in the described manner, print "-1" (without the quotes). Otherwise, print a single number xw — the abscissa of his point of aiming. 

If there are multiple points of aiming, print the abscissa of any of them. When checking the correctness of the answer, all comparisons are made with the permissible absolute error, equal to 10 - 8. 

It is recommended to print as many characters after the decimal point as possible.

Examples

Input

4 10 13 10 3 1


Output

4.3750000000


Input

1 4 6 2 2 1


Output

-1


Input

3 10 15 17 9 2


Output

11.3333333333

Note

Note that in the first and third samples other correct values of abscissa xw are also possible.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int inf = numeric_limits<int>::max();
bool eq(double a, double b) { return fabs(a - b) < 1e-9; }
struct point {
  double x, y;
  point() {}
  point(double xx, double yy) { x = xx, y = yy; }
} origin = point(0, 0);
struct line {
  double a, b, c;
  point p1, p2;
  line() {}
  line(double _a, double _b, double _c) {
    a = _a, b = _b, c = _c;
    assert(!(eq(a, 0) && eq(b, 0)));
    if (eq(a, 0))
      p1 = point(0, -c / b), p2 = point(1, -c / b);
    else if (eq(b, 0))
      p1 = point(-c / a, 0), p2 = point(-c / a, 1);
    else
      p1 = point(0, -c / b), p2 = point(-c / a, 0);
  }
  line(point _p1, point _p2) {
    p1 = _p1, p2 = _p2;
    a = p1.y - p2.y;
    b = p2.x - p1.x;
    c = p1.x * p2.y - p2.x * p1.y;
  }
};
point operator+(const point &u, const point &v) {
  return point(u.x + v.x, u.y + v.y);
}
point operator-(const point &u, const point &v) {
  return point(u.x - v.x, u.y - v.y);
}
point operator*(const point &u, const point &v) {
  return point(u.x * v.x - u.y * v.y, u.x * v.y + v.x * u.y);
}
point operator*(const point &u, double v) { return point(u.x * v, u.y * v); }
point operator*(double v, const point &u) { return point(u.x * v, u.y * v); }
point operator/(const point &u, double v) {
  assert(abs(v) > 1e-9);
  return point(u.x / v, u.y / v);
}
bool operator!=(const point &u, const point &v) {
  return !(eq(u.x, v.x) && eq(u.y, v.y));
}
bool operator<(const point &u, const point &v) {
  if (fabs(u.x - v.x) < 1e-9) return u.y + 1e-9 < v.y;
  return u.x + 1e-9 < v.x;
}
double norm(point u) { return sqrt(u.x * u.x + u.y * u.y); }
double arg(point u) {
  assert(u != origin);
  return atan2(u.y, u.x);
}
point polar(double r, double theta) {
  return point(r * cos(theta), r * sin(theta));
}
double dotp(point u, point v) { return u.x * v.x + u.y * v.y; }
double crsp(point u, point v) { return u.x * v.y - u.y * v.x; }
double smlr_angle(point l, point m, point r) {
  return abs(remainder(arg(l - m) - arg(r - m), 2.0 * acos(-1.00)));
}
point unit_vector(point u) { return u / norm(u); }
point rtt(point piv, point u, double theta) {
  return (u - piv) * polar(1.00, theta) + piv;
}
point projection(point p, point st, point ed) {
  return dotp(ed - st, p - st) / norm(ed - st) * unit_vector(ed - st) + st;
}
point extend(point st, point ed, double len) {
  return ed + unit_vector(ed - st) * len;
}
point segmentProjection(point p, point st, point ed) {
  double d = dotp(p - st, ed - st) / norm(ed - st);
  if (d < 0) return st;
  if (d > norm(ed - st) + 1e-9) return ed;
  return st + unit_vector(ed - st) * d;
}
double distancePointSegment(point p, point st, point ed) {
  return norm(p - segmentProjection(p, st, ed));
}
double distancePointLine(point P, point st, point ed) {
  return norm(projection(P, st, ed) - P);
}
point reflection(point p, point st, point ed) {
  point proj = projection(p, st, ed);
  if (p != proj) return extend(p, proj, norm(p - proj));
  return proj;
}
bool collinear(point p, point st, point ed) {
  return fabs(crsp(p - st, ed - st)) < 1e-9;
}
int lineLineIntersection(point a, point b, point p, point q, point &ret) {
  if (fabs(crsp(b - a, p - q)) < 1e-9) {
    if (collinear(a, p, q)) {
      ret = a;
      return inf;
    }
    return 0;
  } else {
    ret = a + (b - a) * crsp(p - a, p - q) / crsp(b - a, p - q);
    return 1;
  }
}
int lineLineIntersection(line L1, line L2, point &ret) {
  return lineLineIntersection(L1.p1, L1.p2, L2.p1, L2.p2, ret);
}
bool segmentSegmentIntersection(point a, point b, point p, point q,
                                point &ret) {
  if (fabs(crsp(b - a, q - p)) < 1e-9) {
    if (eq(norm(a - p) + norm(q - a), norm(q - p))) {
      ret = a;
      return true;
    }
    if (eq(norm(b - p) + norm(q - b), norm(q - p))) {
      ret = b;
      return true;
    }
    return false;
  }
  double dir1 = crsp(b - a, p - a), dir2 = crsp(b - a, q - a);
  if ((dir1 + 1e-9 < 0 && dir2 + 1e-9 < 0) || (dir1 > 1e-9 && dir2 > 1e-9))
    return false;
  dir1 = crsp(q - p, a - p), dir2 = crsp(q - p, b - p);
  if ((dir1 + 1e-9 < 0 && dir2 + 1e-9 < 0) || (dir1 > 1e-9 && dir2 > 1e-9))
    return false;
  return lineLineIntersection(a, b, p, q, ret);
}
point circumCircleCenter(point u, point v, point w) {
  assert(collinear(u, v, w) == false);
  point vw_mid = (v + w) / 2;
  point uv_mid = (u + v) / 2;
  point ret;
  lineLineIntersection(
      vw_mid, rtt(vw_mid, extend(v, vw_mid, 1), acos(-1.00) / 2), uv_mid,
      rtt(uv_mid, extend(u, uv_mid, 1), acos(-1.00) / 2), ret);
  return ret;
}
double angle(point u, point v) {
  return acos(dotp(u, v) / (norm(u) * norm(v)));
}
bool onSegment(point x, point l, point r) {
  double d1 = norm(l - x) + norm(x - r);
  double d2 = norm(l - r);
  return fabs(d1 - d2) < 1e-9;
}
bool segSegIntersection(point u, point v, point a, point b) {
  double ang1 = crsp(a - v, u - v);
  double ang2 = crsp(b - v, u - v);
  if (ang1 > 1e-9 && ang2 > 1e-9) return false;
  if (ang1 < -1e-9 && ang2 < -1e-9) return false;
  if (fabs(ang1) < 1e-9 || fabs(ang2) < 1e-9) {
    if (fabs(ang1) < 1e-9) {
      if (onSegment(a, u, v)) return true;
    }
    if (fabs(ang2) < 1e-9) {
      if (onSegment(b, u, v)) return true;
    }
    return false;
  }
  swap(u, a);
  swap(v, b);
  ang1 = crsp(a - v, u - v);
  ang2 = crsp(b - v, u - v);
  if (ang1 > 1e-9 && ang2 > 1e-9) return false;
  if (ang1 < -1e-9 && ang2 < -1e-9) return false;
  if (fabs(ang1) < 1e-9 || fabs(ang2) < 1e-9) {
    if (fabs(ang1) < 1e-9) {
      if (onSegment(a, u, v)) return true;
    }
    if (fabs(ang2) < 1e-9) {
      if (onSegment(b, u, v)) return true;
    }
    return false;
  }
  return true;
}
int main() {
  long double y1, y2, w, xb, yb, r;
  int i;
  cin >> y1 >> y2 >> w >> xb >> yb >> r;
  w = w - r;
  double mid = y1 + r;
  double x = xb - ((xb) * (w - yb)) / (2 * w - yb - mid);
  if (distancePointSegment(point(0, y2), point(0, y1 + r), point(x, w)) + 1e-9 <
      r)
    puts("-1");
  else
    printf("%0.11f\n", x);
  return 0;
}