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 JAVA):

Solution:
import java.util.Arrays;
import java.util.Scanner;

public class program {

    public static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        double y1 = in.nextDouble(), y2 = in.nextDouble(), yw = in.nextDouble(), xb = in.nextDouble(), yb = in.nextDouble(), r = in.nextDouble();


        yw -= r;
        y1 += r;

        double Xresult = xb/((yw-yb)/(yw-y1) + 1);
        double A = yw-y1;
        double B = -Xresult;
        double C = Xresult*y1;
        double d = Math.abs(A*0 + B*y2 + C)/Math.sqrt(A*A + B*B);
        //System.out.println(d);
        if(d < r){
            System.out.println("-1");
        }else{
            System.out.printf("%.12f", Xresult);
        }

    }

    public static int getPolindromsCount(String s, int a, int b) {
        if (a == b) {
            return 1;
        }
        int result = b - a + 1;
        for (int i = a; i < b; ++i) {
            for (int j = i; j < b; ++j) {
                if (isPolindrom(s, i, j)) {
                    result++;
                    System.out.println(true);
                } else {
                    System.out.println(false);
                }
            }
        }


        return result;
    }

    public static boolean isPolindrom(String s, int a, int b) {
        boolean result = true;
        if (b - a == 0) {
            return true;
        }
        for (int i = a - 1; i < b; ++i) {
            if (s.toCharArray()[i] != s.toCharArray()[b - 1 - i]) {
                result = false;
                break;
            }
        }
        return result;
    }

    //public static void f(int i, int j, int cnt) {
    //    for (int k = 1; k < 7; k++) {
    //        //if(i+1 < N && j+k < Q)
    //        a[i + 1][j + k]+=cnt;
    //    }
    //}

    //Полный перебор перестановок из N по M с повторениями
    public static void printNM(int N, int M) {
        int element[] = new int[N];
        Arrays.fill(element, 0);
        for (int i = 1; i < N * M; ++i) {
            for (int j = 0; j < N; ++j) {
                System.out.print(element[j]);
            }
            System.out.println();
            if (!getNext(N, M, element)) {
                break;
            }
        }
    }

    public static boolean getNext(int N, int M, int mass[]) {
        //int result[] = Arrays.copyOf(mass, N);
        boolean elemIsFound = false;
        for (int i = N - 1; i >= 0; --i) {
            if (mass[i] < M - 1) {
                mass[i]++;
                return true;
            }
        }
        return false;
    }

    public static int gcd(int a, int b) {
        while (b != 0) {
            int tmp = a % b;
            a = b;
            b = tmp;
        }
        return a;
    }


    /*public static void main(String[] args) {
        int n = in.nextInt();
        int t[] = new int[n];
        int sum = 0;

        for (int i = 0; i < n; ++i) {
            t[i] = in.nextInt();
        }

        if (n < 6) {
            for (int i = 0; i < n; ++i) {
                sum += t[i];
            }
            System.out.println(sum);
            return;
        }

        int tmpSum = 0;
        for (int i = 1; i < n / 3; ++i) {
            tmpSum = 0;
            //Проверка на кратность
            if (n % (i + 1) != 0) {
                continue;
            }
            //Подсчёт сумм со смещениями
            for (int j = 0; j < i; ++j) {//смещение
                for (int k = 0; k < n / (i + 1); ++k) {//сумма с ним

                }
            }
        }


    }*/

    /*public static String ROOT = "\\";

    public static int gcd(int a, int b) {
        while (b != 0) {
            int tmp = a % b;
            a = b;
            b = tmp;
        }
        return a;
    }

    public static void main(String[] args) {

        int numCommands = in.nextInt();
        Vector<String> commands = new Vector<String>();

        for (int i = 0; i < numCommands; ++i) {
            commands.add(in.next());
        }

        for (int i = 0; i < numCommands; ++i) {
            String[] parseCommand = commands.get(i).split("/");
            for (int j = 0; j < parseCommand.length; ++j) {
                System.out.print(parseCommand[j] + "___");
            }
            System.out.println("");
        }

        String currentCD = ROOT;


    }

    public static String cd(String command, String currentPath) {
        String result = "";
        Vector<String> parseCurrent;
        if (!command.contains("..")) {
            return currentPath;
        } else {
            String[] parseCurPath = currentPath.split("/");
            String[] parseCommand = command.split("/");

            System.out.println(parseCurPath);
            System.out.println(parseCommand);
        }


        return result;
    }*/
}


/*public static int gcd(int a, int b) {
    while (b != 0) {
        int tmp = a % b;
        a = b;
        b = tmp;
    }
    return a;
}

public static void main(String[] args) {
    Vector<Integer> mass = new Vector<Integer>();
    for (int i = 0; i < 4; ++i) {
        mass.add(in.nextInt());
    }
    int d = in.nextInt();

    //boolean flags[] = new boolean[d];

    for (int i = 0; i < 4; ++i) {
        if (mass.get(i) == 1) {
            System.out.println(d);
            return;
        }
    }

    mass = normaliseMulties(mass);
    System.out.println(mass);

    int result;
    if (mass.size() == 4) {
        result = d / mass.get(0) + d / mass.get(1) + d / mass.get(2) + d / mass.get(3) -
                d / (mass.get(0) * mass.get(1)) - d / (mass.get(0) * mass.get(2)) - d / (mass.get(0) * mass.get(3)) - d / (mass.get(1) * mass.get(2)) - d / (mass.get(1) * mass.get(3)) - d / (mass.get(2) * mass.get(3)) +
                d / (mass.get(0) * mass.get(1) * mass.get(2)) + d / (mass.get(0) * mass.get(1) * mass.get(3)) + d / (mass.get(1) * mass.get(2) * mass.get(3)) - d / (mass.get(0) * mass.get(1) * mass.get(2) * mass.get(3));
    } else if (mass.size() == 3) {
        result = d / mass.get(0) + d / mass.get(1) + d / mass.get(2) -
                d / (mass.get(0) * mass.get(1)) - d / (mass.get(0) * mass.get(2)) - d / (mass.get(1) * mass.get(2)) + d / (mass.get(0) * mass.get(1) * mass.get(2));
    } else if (mass.size() == 2) {
        result = d / mass.get(0) + d / mass.get(1) - d / (mass.get(0) * mass.get(1));
    } else {
        result = d / mass.get(0);
    }

    System.out.println(result);
}

public static Vector<Integer> normaliseMulties(Vector<Integer> vector) {
    //remove duplicates
    for (int i = 0; i < vector.size(); ++i) {
        for (int j = i + 1; j < vector.size() - 1; ++j) {
            if (vector.get(i).intValue() == vector.get(j).intValue()) {
                vector.removeElement(vector.get(j));
            }
        }
    }


    for (int i = 0; i < vector.size(); ++i) {
        for (int j = i + 1; j < vector.size() - 1; ++j) {
            if (gcd(vector.get(i).intValue(), vector.get(j).intValue()) == Math.min(vector.get(i).intValue(), vector.get(j).intValue())) {
                vector.removeElement(Math.max(vector.get(i).intValue(), vector.get(j).intValue()));
            }
        }
    }
    return vector;
}*/