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>
#pragma GCC optimize("O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
using namespace std;
namespace SimplexMethod {
const long double EPS = 1.0E-12;
vector<vector<long double>> a;
vector<long double> b, c, res;
vector<int> N, kt;
int m;
void pivot(int k, int s, int e) {
  int first = kt[s];
  long double p = a[s][e];
  for (int _n((k)-1), i(0); i <= _n; i++) a[s][i] /= p;
  b[s] /= p;
  N[e] = false;
  for (int _n((m)-1), i(0); i <= _n; i++)
    if (i != s) {
      b[i] -= a[i][e] * b[s];
      a[i][first] = -a[i][e] * a[s][first];
    }
  for (int _n((k)-1), j(0); j <= _n; j++)
    if (N[j]) {
      c[j] -= c[e] * a[s][j];
      for (int _n((m)-1), i(0); i <= _n; i++)
        if (i != s) a[i][j] -= a[i][e] * a[s][j];
    }
  kt[s] = e;
  N[first] = true;
  c[first] = -c[e] * a[s][first];
}
vector<long double> doit(int k) {
  vector<long double> res;
  while (true) {
    int e = -1, s = -1;
    for (int _n((k)-1), i(0); i <= _n; i++)
      if (N[i] && c[i] > EPS) {
        e = i;
        break;
      }
    if (e == -1) break;
    for (int _n((m)-1), i(0); i <= _n; i++)
      if (a[i][e] > EPS && (s == -1 || b[i] / a[i][e] < b[s] / a[s][e])) s = i;
    if (s == -1) return vector<long double>();
    pivot(k, s, e);
  }
  res.resize(k, 0);
  for (int _n((m)-1), i(0); i <= _n; i++) res[kt[i]] = b[i];
  return res;
}
void apply_rand(vector<long double>& a, const vector<int>& ind) {
  for (int _n(((int)((a).size())) - 1), i(0); i <= _n; i++) {
    if (i < ind[i]) {
      swap(a[i], a[ind[i]]);
    }
  }
}
long double simplex(vector<vector<long double>> _A, vector<long double> _b,
                    vector<long double> _c) {
  vector<int> ind((int)((_A[0]).size()));
  for (int _n(((int)((ind).size())) - 1), i(0); i <= _n; i++) {
    ind[i] = i;
  }
  srand(std::chrono::duration_cast<std::chrono::nanoseconds>(
            (std::chrono::high_resolution_clock::now().time_since_epoch()))
            .count() +
        time(0));
  auto rgen = [](int n) -> unsigned {
    return ((unsigned)(rand() << 15) + (unsigned)rand()) % n;
  };
  random_shuffle(ind.begin(), ind.end(), rgen);
  for (int _n(((int)((_A).size())) - 1), i(0); i <= _n; i++) {
    apply_rand(_A[i], ind);
  }
  apply_rand(_c, ind);
  a = _A;
  b = _b;
  c = _c;
  m = (int)((a).size());
  int n = (int)((a[0]).size());
  int k = n + m + 1;
  c.resize(n + m);
  kt.resize(m);
  N = vector<int>(k, true);
  for (int _n((m)-1), i(0); i <= _n; i++) {
    a[i].resize(k);
    a[i][n + i] = 1;
    a[i][k - 1] = -1;
    kt[i] = n + i;
    N[kt[i]] = false;
  }
  int s = min_element((b).begin(), (b).end()) - b.begin();
  if (b[s] < -EPS) {
    c = vector<long double>(k, 0);
    c[k - 1] = -1;
    pivot(k, s, k - 1);
    res = doit(k);
    if (res[k - 1] > EPS) return -1e100;
    for (int _n((m)-1), i(0); i <= _n; i++)
      if (kt[i] == k - 1)
        for (int _n((k - 1) - 1), j(0); j <= _n; j++)
          if (N[j] && (a[i][j] < -EPS || EPS < a[i][j])) {
            pivot(k, i, j);
            break;
          }
    c = _c;
    c.resize(k, 0);
    for (int _n((m)-1), i(0); i <= _n; i++)
      for (int _n((k)-1), j(0); j <= _n; j++)
        if (N[j]) c[j] -= c[kt[i]] * a[i][j];
  }
  res = doit(k - 1);
  if (!res.empty()) res.resize(n);
  long double ans = 0.0;
  for (int _n(((int)((res).size())) - 1), i(0); i <= _n; i++) {
    ans += res[i] * _c[i];
  }
  return ans;
}
}  // namespace SimplexMethod
int d, n, m, k, p, q;
int main() {
  scanf("%d%d%d", &n, &p, &q);
  vector<long double> a, b, c;
  a.resize(n);
  b.resize(n);
  c.resize(n);
  vector<pair<int, int>> tp;
  for (int _n((n)-1), i(0); i <= _n; i++) {
    int first, second;
    scanf("%d%d", &first, &second);
    tp.push_back(make_pair(first, second));
  }
  for (int _n((n)-1), i(0); i <= _n; i++) {
    int first = tp[i].first, second = tp[i].second;
    a[i] = -first;
    b[i] = -second;
    c[i] = -1.0;
  }
  vector<vector<long double>> A;
  A.push_back(a);
  A.push_back(b);
  vector<long double> B;
  B.push_back(-p);
  B.push_back(-q);
  auto res = -SimplexMethod::simplex(A, B, c);
  printf("%.12lf\n", (double)res);
}