#include <bits/stdc++.h>
int scan() {
  int noRead = 0;
  char p = getchar();
  for (; p < 33;) {
    p = getchar();
  }
  while (p > 32) {
    noRead = (noRead << 3) + (noRead << 1) + (p - '0');
    p = getchar();
  }
  return noRead;
}
using namespace std;
vector<pair<long long int, long long int> > vec;
int main(void) {
  ios_base::sync_with_stdio(false);
  long long int n;
  cin >> n;
  long long int x1, x2;
  cin >> x1 >> x2;
  for (int i = 0; i < n; ++i) {
    long long int m, c;
    cin >> m >> c;
    long long int y1 = m * x1 + c;
    long long int y2 = m * x2 + c;
    vec.push_back(make_pair(y1, y2));
  }
  sort(vec.begin(), vec.end());
  long long int maxy = vec[0].second;
  for (int i = 1; i < n; ++i) {
    if (vec[i].second < maxy) {
      cout << "YES";
      return 0;
    }
    maxy = max(maxy, vec[i].second);
  }
  cout << "NO";
  return 0;
}
