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;
long long max(long long a, long long b) {
  if (a > b) {
    return a;
  } else {
    return b;
  }
}
long long min(long long a, long long b) {
  if (a < b) {
    return a;
  } else {
    return b;
  }
}
bool eq(double x, double y) { return (abs(x - y) < 1e-9); }
bool leq(double x, double y) { return y + 1e-9 > x; }
bool lq(double x, double y) { return y > x + 1e-9; }
struct P {
  double x, y;
  P() {}
  P(double x, double y) : x(x), y(y) {}
  P operator+(const P &a) const { return P(x + a.x, y + a.y); }
  P operator-(const P &a) const { return P(x - a.x, y - a.y); }
  P operator*(const double &a) const { return P(x * a, y * a); }
  P operator/(const double &a) const { return P(x / a, y / a); }
  bool operator==(const P &a) const {
    return (abs(a.x - x) < 1e-9 && abs(a.y - y) < 1e-9);
  }
  double operator*(const P &a) const { return x * a.x + y * a.y; }
  double operator^(const P &a) const { return x * a.y - y * a.x; }
  void in() { scanf("%lf%lf", &x, &y); }
  void out() { printf("REQUIRED %.7f %.7f\n", x, y); }
  double dist(P a) {
    return sqrt((a.x - x) * (a.x - x) + (a.y - y) * (a.y - y));
  }
  double len() { return dist(P(0, 0)); }
  double sqdist(P a) { return (a.x - x) * (a.x - x) + (a.y - y) * (a.y - y); }
  double ang(P a) {
    double ab = atan2(a.x - x, a.y - y);
    if (ab < -1 * 1e-9) ab += 2 * acos(-1.0);
    return ab;
  }
  double ang() { return P(0, 0).ang(*this); }
  P rot(double a) {
    P T = P(x * cos(a) + y * -1 * sin(a), x * sin(a) + y * cos(a));
    return T;
  }
  P norm() {
    double len = sqrt(x * x + y * y);
    return P(x / len, y / len);
  }
  P nor_vector() { return P(-y, x); }
};
P O;
struct seg {
  P s, e;
  bool is_seg;
  seg() {}
  seg(P s, P e, bool seg) : s(s), e(e), is_seg(seg) {}
  void in() {
    scanf("%lf%lf", &s.x, &s.y);
    scanf("%lf%lf", &e.x, &e.y);
    is_seg = false;
  }
  double slope() {
    if (e.x > s.x) return atan2(e.x - s.x, e.y - s.y);
    return atan2(s.x - e.x, s.y - e.y);
  }
  double ang() { return (e - s).ang(); }
  bool equal_slope(seg B) { return (eq(((e - s) ^ (B.e - B.s)), 0.00)); }
  void out() {
    s.out();
    e.out();
    puts("------------");
  }
  bool P_in_line(P w) {
    if (w == s || w == e) return true;
    if (!is_seg) return true;
    return (leq(w.dist(s), s.dist(e)) && leq(w.dist(e), s.dist(e)));
  }
  double dist(P a) {
    if (!is_seg) return abs(((a - s) ^ (e - s)) / s.dist(e));
    double f = ((a - s) * (e - s)) / ((e - s) * (e - s));
    if (leq(0, f) && leq(f, 1))
      return abs(((a - s) ^ (e - s)) / s.dist(e));
    else {
      double f1 = s.dist(a), f2 = e.dist(a);
      if (leq(f1, f2))
        return f1;
      else
        return f2;
    }
  }
};
int intersect(seg A, seg B, P &T) {
  if (eq(((A.e - A.s) ^ (B.e - B.s)), 0.00)) {
    if (eq(A.slope(), seg(A.s, A.s == B.e ? B.s : B.e, 0).slope())) {
      if (!A.is_seg || !B.is_seg) return -1;
      int cnt = 0;
      if (A.P_in_line(B.s)) T = B.s, cnt++;
      if (A.P_in_line(B.e)) T = B.e, cnt++;
      if (cnt == 0) return 0;
      if (cnt > 1) return -1;
      cnt = 0;
      if (B.P_in_line(A.s)) T = A.s, cnt++;
      if (B.P_in_line(A.e)) T = A.e, cnt++;
      if (cnt == 0) return 0;
      if (cnt > 1) return -1;
      cnt = 0;
      if (A.s == B.s) cnt++;
      if (A.s == B.e) cnt++;
      if (A.e == B.s) cnt++;
      if (A.e == B.e) cnt++;
      if (cnt == 0) return -1;
      return 1;
    } else
      return 0;
  } else {
    double u = ((B.s - A.s) ^ (B.e - B.s)) / ((A.e - A.s) ^ (B.e - B.s));
    T = A.s + (A.e - A.s) * u;
    if (A.is_seg && !A.P_in_line(T)) return 0;
    if (B.is_seg && !B.P_in_line(T)) return 0;
    return 1;
  }
}
int intersect2(seg A, seg B, seg &T) {
  if (A.s == A.e && B.s == B.e) {
    if (A.s == B.e) {
      T = seg(A.s, A.s, 1);
      return 1;
    } else
      return 0;
  }
  if (A.s == A.e) {
    if (B.P_in_line(A.s)) {
      T = seg(A.s, A.s, 1);
      return 1;
    } else
      return 0;
  }
  if (B.s == B.e) {
    if (A.P_in_line(B.s)) {
      T = seg(B.e, B.e, 1);
      return 1;
    } else
      return 0;
  }
  if (A.equal_slope(B)) {
    if (A.equal_slope(seg(A.s, A.s == B.e ? B.s : B.e, 0))) {
      if (!A.is_seg && !B.is_seg) return -1;
      int cnt = 0;
      P W[5];
      if (A.P_in_line(B.s)) W[++cnt] = B.s;
      if (A.P_in_line(B.e)) W[++cnt] = B.e;
      if (B.P_in_line(A.e)) W[++cnt] = A.e;
      if (B.P_in_line(A.s)) W[++cnt] = A.s;
      if (cnt == 0) return 0;
      if (cnt == 1) {
        T = seg(W[1], W[1], 1);
        return 1;
      }
      T = seg(W[1], W[2], 1);
      return 1;
    } else {
      return 0;
    }
  } else {
    double u = ((B.s - A.s) ^ (B.e - B.s)) / ((A.e - A.s) ^ (B.e - B.s));
    P Y = A.s + (A.e - A.s) * u;
    if (A.is_seg && !A.P_in_line(Y)) return 0;
    if (B.is_seg && !B.P_in_line(Y)) return 0;
    T = seg(Y, Y, 1);
    return 1;
  }
}
bool operator<(P u, P v) {
  if (lq(u.x, v.x)) return true;
  if (lq(v.x, u.x)) return false;
  return lq(u.y, v.y);
}
P X[300001];
void Convex_Hull(P C[], P T[], int n, int &f) {
  for (int i = (0); i < (n); i++) X[i] = C[i];
  sort(X, X + n);
  int cnt = 0, num = 0;
  for (int i = (0); i < (n); i++) {
    while (num >= 2 &&
           leq((T[cnt - 1] - T[cnt - 2]) ^ (X[i] - T[cnt - 1]), 0)) {
      num--;
      cnt--;
    }
    T[cnt++] = X[i];
    num++;
  }
  num = 0;
  cnt--;
  for (int i = (n - 1); i >= (0); i--) {
    while (num >= 2 &&
           leq((T[cnt - 1] - T[cnt - 2]) ^ (X[i] - T[cnt - 1]), 0)) {
      num--;
      cnt--;
    }
    T[cnt++] = X[i];
    num++;
  }
  f = cnt - 1;
}
int n, m;
double ma, mb;
P R[300001], E[300001];
double res;
void calc(P A) {
  if (A == P(0, 0)) return;
  double t1, t2;
  t1 = O.x / A.x;
  t2 = O.y / A.y;
  if (lq(t1, t2)) t1 = t2;
  if (lq(res, 0.00) || lq(t1, res)) res = t1;
}
int main() {
  scanf("%d", &n);
  O.in();
  for (int i = (1); i <= (n); i++) R[i].in();
  for (int i = (1); i <= (n); i++) {
    if (i == 1)
      ma = R[i].x, mb = R[i].y;
    else {
      if (lq(ma, R[i].x)) ma = R[i].x;
      if (lq(mb, R[i].y)) mb = R[i].y;
    }
  }
  R[++n] = P(0, mb);
  R[++n] = P(0, 0);
  R[0] = P(ma, 0);
  n++;
  Convex_Hull(R, E, n, m);
  seg Z = seg(P(0, 0), O, 0);
  res = -1.00;
  for (int i = (0); i < (m); i++) {
    seg Q = seg(E[i], E[(i + 1) % m], 1);
    seg W;
    if ((intersect2(Q, Z, W) == 1)) {
      calc(W.s);
      calc(W.e);
    }
  }
  printf("%.12lf\n", res);
  return 0;
}