#include <bits/stdc++.h>
using namespace std;
int compare(const void* a, const void* b) {
  return ((*(pair<long long, long long>*)a).first -
          (*(pair<long long, long long>*)b).first);
}
string alfabet = "abcdefghijklmnopqrstuvwxyz";
int main() {
  long long n, x1, x2, k, b;
  cin >> n;
  cin >> x1 >> x2;
  vector<pair<double, double> > lines;
  pair<double, double> line;
  for (int i = 0; i < n; ++i) {
    cin >> k >> b;
    line.first = k * x1 + b;
    line.second = k * x2 + b;
    lines.push_back(line);
  }
  sort(lines.begin(), lines.end());
  for (int i = 0; i < n - 1; ++i) {
    if (lines[i].second > lines[i + 1].second &&
        lines[i].first != lines[i + 1].first) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
