#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x1, x2;
  cin >> n >> x1 >> x2;
  int pos = 0, neg = 0;
  vector<pair<double, double>> v;
  for (int i = 0; i < n; ++i) {
    int k, b;
    cin >> k >> b;
    double y1 = double(k) * x1 + b;
    double y2 = double(k) * x2 + b;
    v.emplace_back(y1, y2);
  }
  sort(v.begin(), v.end());
  double cury = -1e15;
  for (int i = 0; i < (int(v.size())); ++i) {
    if (v[i].second < cury) {
      cout << "YES\n";
      return 0;
    }
    cury = max(cury, v[i].second);
  }
  cout << "NO\n";
  return 0;
}
