#include <bits/stdc++.h>
using namespace std;
const long double EPS = 1e-9;
struct line {
  long long int k, b;
};
struct result {
  long double val;
  int ind;
};
long double eval(long double k, long double b, long double x) {
  return k * x + b;
}
bool cmp_result(const result& a, const result& b) {
  if (a.val == b.val) return a.ind < b.ind;
  return a.val < b.val;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  long double l, r;
  cin >> l >> r;
  vector<result> at_l(n);
  vector<result> at_r(n);
  for (int i = 0; i < n; ++i) {
    long double ki, bi;
    cin >> ki >> bi;
    result res_l = {eval(ki, bi, l + EPS), i};
    at_l[i] = res_l;
    result res_r = {eval(ki, bi, r - EPS), i};
    at_r[i] = res_r;
  }
  sort(at_l.begin(), at_l.end(), cmp_result);
  sort(at_r.begin(), at_r.end(), cmp_result);
  bool any = false;
  for (int i = 0; i < n; ++i) {
    if (at_l[i].ind != at_r[i].ind) any = true;
  }
  cout << (any ? "YES" : "NO") << endl;
}
