#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef pair<P,P> PP;
const ll MOD = 1000000007;
const int IINF = INT_MAX;
const ll LLINF = LLONG_MAX;
const int MAX_N = int(1e5 + 5);
const double EPS = 1e-10;
const int di[] = {0, 1, 0, -1}, dj[] = {1, 0, -1, 0};
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define SORT(v) sort((v).begin(), (v).end())
#define ALL(v) (v).begin(), (v).end()

int main() {
    double W, H, w, h, x, y, px, py;
    cin >> W >> H >> w >> h >> x >> y;
    px = (max(-W/2,x-w/2)+min(W/2,x+w/2))/2;
    py = (max(-H/2,y-h/2)+min(H/2,y+h/2))/2;
    printf("%.8lf\n",py/px);
    return 0;
}

