Problem: Mikhail the Freelancer dreams of two things: to become a cool programmer and to buy a flat in Moscow. To become a cool programmer, he needs at least p experience points, and a desired flat in Moscow costs q dollars. Mikhail is determined to follow his dreams and registered at a freelance site.

He has suggestions to work on n distinct projects. Mikhail has already evaluated that the participation in the i-th project will increase his experience by ai per day and bring bi dollars per day. As freelance work implies flexible working hours, Mikhail is free to stop working on one project at any time and start working on another project. Doing so, he receives the respective share of experience and money. Mikhail is only trying to become a cool programmer, so he is able to work only on one project at any moment of time.

Find the real value, equal to the minimum number of days Mikhail needs to make his dream come true.

For example, suppose Mikhail is suggested to work on three projects and a1 = 6, b1 = 2, a2 = 1, b2 = 3, a3 = 2, b3 = 6. Also, p = 20 and q = 20. In order to achieve his aims Mikhail has to work for 2.5 days on both first and third projects. Indeed, a1·2.5 + a2·0 + a3·2.5 = 6·2.5 + 1·0 + 2·2.5 = 20 and b1·2.5 + b2·0 + b3·2.5 = 2·2.5 + 3·0 + 6·2.5 = 20.

Input

The first line of the input contains three integers n, p and q (1 ≤ n ≤ 100 000, 1 ≤ p, q ≤ 1 000 000) — the number of projects and the required number of experience and money.

Each of the next n lines contains two integers ai and bi (1 ≤ ai, bi ≤ 1 000 000) — the daily increase in experience and daily income for working on the i-th project.

Output

Print a real value — the minimum number of days Mikhail needs to get the required amount of experience and money. Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6. 

Namely: let's assume that your answer is a, and the answer of the jury is b. The checker program will consider your answer correct, if <image>.

Examples

Input

3 20 20
6 2
1 3
2 6


Output

5.000000000000000


Input

4 1 1
2 3
3 2
2 3
3 2


Output

0.400000000000000

Note

First sample corresponds to the example in the problem statement.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
bool doubleEquals(double a, double b) { return abs(a - b) < eps; }
struct Point {
  double x, y;
  Point() {}
  Point(double x, double y) : x(x), y(y) {}
  Point operator-(Point &p) { return Point(x - p.x, y - p.y); }
  bool operator<(const Point &p) const {
    return x < p.x || (x == p.x && y < p.y);
  }
  bool operator==(Point p) {
    return doubleEquals(x, p.x) && doubleEquals(y, p.y);
  }
};
ostream &operator<<(ostream &os, Point p) {
  return os << "(" << p.x << "," << p.y << ")";
}
double cross(Point O, Point A, Point B) {
  return (A - O).x * (B - O).y - (A - O).y * (B - O).x;
}
double dot(Point A, Point B) { return A.x * B.x + A.y * B.y; }
double dist(Point A, Point B) { return sqrtl(dot(A - B, A - B)); }
double distLine(Point A, Point B, Point P) {
  return abs(cross(A, B, P) / dist(A, B));
}
double angle(Point O, Point A, Point B) {
  return acos(dot(A - O, B - O) / (dist(O, A) * dist(O, B)));
}
vector<Point> convexHull(vector<Point> &points) {
  vector<Point> hull(points.size() + 1);
  int k = 0;
  sort(points.begin(), points.end());
  for (int i = 0; i < points.size(); i++) {
    while (k >= 2 && (cross(hull[k - 2], hull[k - 1], points[i]) + eps > 0))
      k--;
    hull[k++] = points[i];
  }
  for (int i = points.size() - 2, t = k + 1; i >= 0; i--) {
    while (k >= t && cross(hull[k - 2], hull[k - 1], points[i]) + eps > 0) k--;
    hull[k++] = points[i];
  }
  hull.resize(k);
  return hull;
}
bool pnpoly(Point p, vector<Point> &points) {
  bool c = 0;
  for (int i = 0, j = points.size() - 1; i < points.size(); j = i++) {
    if (((points[i].y > p.y) != (points[j].y > p.y)) &&
        (p.x < (double)(points[j].x - points[i].x) * (p.y - points[i].y) /
                       (points[j].y - points[i].y) +
                   points[i].x))
      c = !c;
  }
  return c;
}
struct Line {
  double A, B, C;
  Line(double A, double B, double C) : A(A), B(B), C(C){};
  Line(Point p1, Point p2) {
    A = p1.y - p2.y;
    B = p2.x - p1.x;
    C = p1.x * p2.y - p1.y * p2.x;
  }
  bool parallel(Line l) { return doubleEquals(B * l.A - A * l.B, 0); }
  bool equals(Line l) {
    if (!parallel(l)) return false;
    return parallel(l) && doubleEquals(distLine(l), 0);
  }
  Point inter(Line l) {
    assert(!parallel(l));
    Point ret;
    ret.x = (l.C * B - C * l.B) / (l.B * A - B * l.A);
    ret.y = (l.C * A - C * l.A) / (B * l.A - l.B * A);
    return ret;
  }
  double distLine(Line l) {
    if (l.A == 0) return distPoint({0, -l.C / l.B});
    return distPoint({-l.C / l.A, 0});
  }
  double distPoint(Point p) {
    return abs(A * p.x + B * p.y + C) / sqrt(A * A + B * B);
  }
  Line getPerpendicular(Point p) {
    Line l(B, -A, 0);
    l.C = -l.A * p.x - l.B * p.y;
    return l;
  }
};
bool pointInSegment(pair<Point, Point> s, Point p) {
  double xa = min(s.first.x, s.second.x), xb = max(s.first.x, s.second.x);
  double ya = min(s.first.y, s.second.y), yb = max(s.first.y, s.second.y);
  return p.x + eps > xa && p.x - eps < xb && p.y + eps > ya && p.y - eps < yb;
}
bool segmentInter(pair<Point, Point> A, pair<Point, Point> B) {
  Line la(A.first, A.second), lb(B.first, B.second);
  if (la.parallel(lb) && !la.equals(lb)) return false;
  if (la.equals(lb)) {
    if (max(A.first.x, A.second.x) + eps < min(B.first.x, B.second.x))
      return false;
    if (min(A.first.x, A.second.x) - eps > max(B.first.x, B.second.x))
      return false;
    if (max(A.first.y, A.second.y) + eps < min(B.first.y, B.second.y))
      return false;
    if (min(A.first.y, A.second.y) - eps > max(B.first.y, B.second.y))
      return false;
    return true;
  }
  Point i = la.inter(lb);
  return pointInSegment(A, i) && pointInSegment(B, i);
}
double distSegmentToPoint(pair<Point, Point> s, Point P) {
  if (dot(s.first - s.second, P - s.second) < 0) return dist(s.second, P);
  if (dot(s.second - s.first, P - s.first) < 0) return dist(s.first, P);
  return distLine(s.first, s.second, P);
}
double distSegmentToSegment(pair<Point, Point> sa, pair<Point, Point> sb) {
  if (sa.first == sa.second && sb.first == sb.second)
    return dist(sa.first, sb.first);
  if (sa.first == sa.second) return distSegmentToPoint(sb, sa.first);
  if (sb.first == sb.second) return distSegmentToPoint(sa, sb.first);
  if (segmentInter(sa, sb)) return 0;
  return min(
      {distSegmentToPoint(sa, sb.first), distSegmentToPoint(sa, sb.second),
       distSegmentToPoint(sb, sa.first), distSegmentToPoint(sb, sa.second)});
}
vector<Point> points;
vector<Point> works;
bool ok(double t, double p, double q) {
  points.clear();
  double max_x = 0, max_y = 0;
  for (int i = 0; i < works.size(); i++) {
    double x = works[i].x * t, y = works[i].y * t;
    max_x = max(max_x, x);
    max_y = max(max_y, y);
    points.push_back(Point(x, y));
  }
  points.push_back(Point(0, 0));
  points.push_back(Point(max_x, 0));
  points.push_back(Point(0, max_y));
  vector<Point> hull = convexHull(points);
  return pnpoly(Point(p, q), hull);
}
int main() {
  int n, p, q;
  scanf("%d %d %d", &n, &p, &q);
  for (int i = 0; i < n; i++) {
    int x, y;
    scanf("%d %d", &x, &y);
    works.push_back(Point(x, y));
  }
  double l = 0, r = 1e9;
  for (int i = 0; i < 100; i++) {
    double mid = (r + l) / 2;
    if (ok(mid, p, q))
      r = mid;
    else
      l = mid;
  }
  printf("%.10lf\n", (r + l) / 2);
  return 0;
}