Problem: A lot of people dream of convertibles (also often called cabriolets). Some of convertibles, however, don't have roof at all, and are vulnerable to rain. This is why Melon Ask, the famous inventor, decided to create a rain protection mechanism for convertibles.

The workplace of the mechanism is a part of plane just above the driver. Its functional part consists of two rails with sliding endpoints of a piece of stretching rope. For the sake of simplicity we can consider this as a pair of parallel segments in a plane with the rope segment, whose endpoints we are free to choose as any points on these rails segments.

<image>

The algorithmic part of the mechanism detects each particular raindrop and predicts when and where it reaches the plane. At this exact moment the rope segment must contain the raindrop point (so the rope adsorbs the raindrop).

You are given the initial position of the rope endpoints and all information about raindrops. You are to choose the minimal possible speed v of the endpoints sliding (both endpoints can slide in any direction along their segments independently of each other) in such a way that it is possible to catch all raindrops moving both endpoints with speed not greater than v, or find out that it's impossible no matter how high the speed is.

Input

The first line contains three integers n, w and h (1 ≤ n ≤ 10^5, 1≤ w, h ≤ 10^3), meaning that there are n raindrops, and two rails are represented as segments connecting (0, 0) and (w, 0) and connecting (0, h) and (w, h).

The second line contains two integers e_1 and e_2, meaning that the initial (that is, at the moment t = 0) positions of the endpoints are (e_1, 0) and (e_2, h) (0≤ e_1, e_2≤ w).

The i-th of the following n lines contains three integers t_i, x_i and y_i (1≤ t_i≤ 10^5, 0≤ x_i ≤ w, 0 < y_i < h) meaning that the i-th raindrop touches the plane at the point (x_i, y_i) at the time moment t_i. It is guaranteed that t_i ≤ t_{i+1} for all valid i.

Output

If it is impossible to catch all raindrops, print -1.

Otherwise, print the least possible maximum speed of the rope endpoints for which it is possible to catch them all. Your answer is considered correct if the absolute or relative error doesn't exceed 10^{-4}.

Formally, let your answer be a, and the jury's answer be b. Your answer is considered correct if \frac{|a - b|}{max{(1, |b|)}} ≤ 10^{-4}.

Examples

Input

3 5 5
0 0
1 1 4
2 2 4
3 3 4


Output

1.0000000019


Input

2 5 5
0 0
2 4 1
3 1 4


Output

2.1428571437


Input

3 5 5
0 0
1 2 1
1 3 3
1 4 2


Output

-1

Note

That is how one can act in the first sample test:

<image>

Here is the same for the second:

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-6;
int read() {
  char c;
  while ((c = getchar()) < '0' || c > '9')
    ;
  int res = c - '0';
  while ((c = getchar()) >= '0' && c <= '9') res = res * 10 + c - '0';
  return res;
}
int n;
double w, h;
double sx1, sx2;
int ti[100010];
double p[100010][2];
bool check(double v) {
  double l = sx1, r = sx1;
  double lx = (sx1 + sx2) / 2, ly = h / 2;
  for (int i = 1; i <= n; i++) {
    double a1 = -(h - p[i][1]) / p[i][1], b1 = p[i][0] - a1 * p[i][0];
    double a2 = -ly / (h - ly), b2 = lx - a2 * lx;
    double a = a1 * a2, b = b2 + a2 * b1;
    double d1 = v * (ti[i] - ti[i - 1]), d2 = -a2 * d1;
    double l1 = l - d1, r1 = r + d1, l2 = (l - d2 - b) / a,
           r2 = (r + d2 - b) / a, l3, r3, l4, r4;
    if (a < 1 - eps) {
      l3 = (d1 + d2 - b) / (a - 1);
      r3 = (-d1 - d2 - b) / (a - 1);
    } else if (a > 1 + eps) {
      l3 = (-d1 - d2 - b) / (a - 1);
      r3 = (d1 + d2 - b) / (a - 1);
    } else {
      if (abs(b) > d1 + d2) return 0;
      l3 = 0, r3 = w;
    }
    l4 = p[i][0] - (w - p[i][0]) * p[i][1] / (h - p[i][1]);
    r4 = p[i][0] - (0 - p[i][0]) * p[i][1] / (h - p[i][1]);
    l = max(max(max(l1, l2), max(l3, l4)), (double)0);
    r = min(min(min(r1, r2), min(r3, r4)), (double)w);
    if (l > r && l - r < eps) swap(l, r);
    if (l > r) return 0;
    lx = p[i][0];
    ly = p[i][1];
  }
  return 1;
}
int main() {
  n = read();
  w = read();
  h = read();
  sx1 = read();
  sx2 = read();
  for (int i = 1; i <= n; i++)
    ti[i] = read(), p[i][0] = read(), p[i][1] = read();
  if (!check(w + 1)) {
    puts("-1");
    return 0;
  }
  double l = 0, r = w;
  while ((r - l) / max((double)1, l) > 5e-5) {
    double mid = (l + r) / 2;
    if (check(mid))
      r = mid;
    else
      l = mid;
  }
  printf("%.10f\n", (double)(l + r) / 2);
}