#include <bits/stdc++.h>
using namespace std;
vector<pair<long long, long long> > v;
int main() {
  long long n;
  long long x1, x2;
  long long a, b;
  cin >> n;
  cin >> x1 >> x2;
  for (int i = 0; i < n; ++i) {
    cin >> a >> b;
    long long y1 = a * x1 + b;
    long long y2 = a * x2 + b;
    v.push_back(make_pair(y1, y2));
  }
  sort(v.begin(), v.end());
  for (int i = 0; i < n - 1; ++i) {
    if (v[i].second > v[i + 1].second) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
}
