#include <bits/stdc++.h>
using namespace std;
const int INF = numeric_limits<int>::max();
const int LINF = numeric_limits<int>::max();
const double EPS = 1e-7;
const int MAXN = 1e5 + 5;
void solve() {
  int n;
  cin >> n;
  double x1, x2;
  cin >> x1 >> x2;
  pair<double, double> inout[n];
  for (int i = 0; i < n; ++i) {
    double in, out;
    double k, b;
    cin >> k >> b;
    in = k * x1 + b;
    out = k * x2 + b;
    inout[i] = make_pair(in, out);
  }
  sort(inout, inout + n);
  for (int i = 0; i < n - 1; ++i) {
    if (inout[i].second > inout[i + 1].second) {
      cout << "YES";
      return;
    }
  }
  cout << "NO";
  return;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  if (0) {
  } else {
  }
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
