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 int N = 100005;
const long double eps = 1e-12;
struct pt {
  long double x, y;
  pt(long double _x = 0, long double _y = 0) { x = _x, y = _y; }
  friend bool operator<(pt a, pt b) { return a.x - a.y < b.x - b.y; }
  friend pt operator-(pt a, pt b) { return pt(a.x - b.x, a.y - b.y); }
  friend long double operator*(pt a, pt b) { return a.x * b.y - a.y * b.x; }
} S, p[N], u[N], v[N];
int tim[N], n, w, h;
inline long double dist(pt a, pt b) {
  return sqrt(((a.x - b.x) * (a.x - b.x)) + ((a.y - b.y) * (a.y - b.y)));
}
inline bool same(pt a, pt b) { return dist(a, b) < eps; }
inline long double cross(pt a, pt b, pt p) { return (a - p) * (b - p); }
inline bool segCross(pt a, pt b, pt c, pt d, pt &p) {
  long double A, B, s1, s2, s3, s4;
  if (same(c, d)) {
    swap(a, c), swap(b, d);
  }
  A = (s1 = cross(a, b, c)) * (s2 = cross(a, b, d));
  B = (s3 = cross(c, d, a)) * (s4 = cross(c, d, b));
  if (!same(a, b)) {
    if (A > eps || B > eps) return 0;
    if (A > -eps && B > -eps) return 0;
    p.x = (c.x * s2 - d.x * s1) / (s2 - s1);
    p.y = (c.y * s2 - d.y * s1) / (s2 - s1);
  } else if (same(c, d)) {
    return p = a, same(b, c);
  } else {
    return p = a, dist(a, c) + dist(a, d) < dist(c, d) + eps;
  }
  return 1;
}
inline bool inside(pt s, pt t, long double d, pt p) {
  if (fabs(p.x - s.x) < d + eps && fabs(p.y - s.y) < d + eps) return 1;
  if (fabs(p.x - t.x) < d + eps && fabs(p.y - t.y) < d + eps) return 1;
  pt A = pt(p.x - d, p.y - d), B = pt(p.x + d, p.y + d), C;
  return segCross(s, t, A, B, C);
}
int flag;
bool check(long double r) {
  pt s = S, t = S, a, b, c;
  long double delta;
  vector<pt> pp;
  for (int i = (1), _E = (n); i <= _E; ++i) {
    delta = r * (tim[i] - tim[i - 1]);
    pp.clear();
    if (inside(s, t, delta, u[i])) pp.push_back(u[i]);
    if (inside(s, t, delta, v[i])) pp.push_back(v[i]);
    a = pt(s.x + -1 * delta, s.y + -1 * delta),
    b = pt(s.x + -1 * delta, s.y + 1 * delta);
    if (segCross(u[i], v[i], a, b, c)) pp.push_back(c);
    ;
    a = b, b = pt(s.x + 1 * delta, s.y + 1 * delta);
    if (segCross(u[i], v[i], a, b, c)) pp.push_back(c);
    ;
    a = b, b = pt(t.x + 1 * delta, t.y + 1 * delta);
    if (segCross(u[i], v[i], a, b, c)) pp.push_back(c);
    ;
    a = b, b = pt(t.x + 1 * delta, t.y + -1 * delta);
    if (segCross(u[i], v[i], a, b, c)) pp.push_back(c);
    ;
    a = b, b = pt(t.x + -1 * delta, t.y + -1 * delta);
    if (segCross(u[i], v[i], a, b, c)) pp.push_back(c);
    ;
    a = b, b = pt(s.x + -1 * delta, s.y + -1 * delta);
    if (segCross(u[i], v[i], a, b, c)) pp.push_back(c);
    ;
    if (pp.empty()) {
      if (flag) {
      }
      return 0;
    }
    sort(pp.begin(), pp.end());
    s = pp[0], t = pp.back();
  }
  return 1;
}
pt O, U, R, g;
inline void doit(pt p, pt &u, pt &v) {
  if (fabs(p.x - w) < eps) {
    u = v = pt(w, w);
    return;
  }
  u = pt(0, p.x * h / p.y);
  v = pt(p.x * h / (h - p.y), 0);
  pt uu = u, vv = v;
  if (segCross(O, U, uu, vv, g)) u = g;
  if (segCross(O, R, uu, vv, g)) v = g;
}
int main() {
  double x, y;
  scanf("%d%d%d", &n, &w, &h);
  U = pt(0, w), R = pt(w, 0), O = pt(w, w);
  scanf("%lf%lf", &x, &y), S = pt(x, y);
  flag = (x == 780.0 && y == 51.0);
  for (int i = (1), _E = (n); i <= _E; ++i) {
    scanf("%d%lf%lf", &tim[i], &x, &y), p[i] = pt(x, y);
    doit(p[i], u[i], v[i]);
  }
  if (!check(w + 1)) return puts("-1"), 0;
  long double l = 0, r = w + 1, mid;
  for (int i = (1), _E = (50); i <= _E; ++i) {
    mid = (l + r) * 0.5;
    if (check(mid))
      r = mid;
    else
      l = mid;
  }
  printf("%.6lf\n", (double)l);
  return 0;
}