#include <iostream>
#include <iomanip>
using namespace std;

int main(){
    double bw,bh,sw,sh,x,y;
    cin >> bw >> bh >> sw >> sh >> x >> y;
    double midx = (x -sw/2 +min(x +sw/2, bw/2) ) /2;
    double midy = (y -sh/2 +min(y +sh/2, bh/2) ) /2;
    cout << fixed << setprecision(10);
    cout << midy /midx << endl;
    return 0;
}

