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>
double eps = 1e-8;
typedef struct {
  double x;
  double y;
} point;
typedef struct {
  point p1;
  point p2;
} line;
point make_point(double x, double y) {
  point p;
  p.x = x;
  p.y = y;
  return p;
}
line make_line(point p1, point p2) {
  line l;
  l.p1 = p1;
  l.p2 = p2;
  return l;
}
double dist(point p1, point p2) {
  return sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));
}
double dist_line(line l, point p) {
  double dx = l.p2.x - l.p1.x;
  double dy = l.p2.y - l.p1.y;
  double t = (dx * (p.x - l.p1.x) + dy * (p.y - l.p1.y)) / (dx * dx + dy * dy);
  if (t < 0) t = 0;
  if (t > 1) t = 1;
  return dist(make_point(l.p1.x + dx * t, l.p1.y + dy * t), p);
}
double area(point p1, point p2, point p3) {
  p1.x -= p3.x;
  p1.y -= p3.y;
  p2.x -= p3.x;
  p2.y -= p3.y;
  return fabs(p1.x * p2.y - p2.x * p1.y) / 2;
}
point cross_point(line l1, line l2) {
  double a = area(l1.p1, l2.p1, l2.p2);
  double b = area(l1.p2, l2.p1, l2.p2);
  if (a < eps && b < eps) return l1.p1;
  return make_point(l1.p1.x + (l1.p2.x - l1.p1.x) * a / (a + b),
                    l1.p1.y + (l1.p2.y - l1.p1.y) * a / (a + b));
}
int main() {
  int y1, y2, yw, xb, yb, r;
  point p1, p2, p3;
  scanf("%d %d %d %d %d %d", &y1, &y2, &yw, &xb, &yb, &r);
  p1 = make_point(xb, yb);
  p2 = make_point(0, (yw - r) * 2 - y1 - r);
  p3 = make_point(0, (yw - r) * 2 - y2);
  if (dist_line(make_line(p1, p2), p3) + eps < r) {
    puts("-1");
  } else {
    point p = cross_point(make_line(p1, p2), make_line(make_point(0, yw - r),
                                                       make_point(xb, yw - r)));
    printf("%.12lf\n", p.x);
  }
  return 0;
}