#include <bits/stdc++.h>
const char en = '\n';
using namespace std;
long long x1, x2;
bool cmp1(pair<pair<long long, long long>, long long> a,
          pair<pair<long long, long long>, long long> b) {
  long long x = a.first.first * x1 + a.first.second;
  long long y = b.first.first * x1 + b.first.second;
  if (x == y) return a.first.first < b.first.first;
  return x < y;
}
bool cmp2(pair<pair<long long, long long>, long long> a,
          pair<pair<long long, long long>, long long> b) {
  long long x = a.first.first * x2 + a.first.second;
  long long y = b.first.first * x2 + b.first.second;
  if (x == y) return a.first.first > b.first.first;
  return x < y;
}
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  cin >> x1 >> x2;
  vector<pair<long long, long long>> V;
  for (int i = 0; i < n; i++) {
    int a, b;
    cin >> a >> b;
    V.push_back(make_pair(a, b));
  }
  vector<pair<pair<long long, long long>, long long>> X1, X2;
  for (int i = 0; i < n; i++) {
    X1.push_back(make_pair(V[i], i));
    X2.push_back(make_pair(V[i], i));
  }
  sort(X1.begin(), X1.end(), cmp1);
  sort(X2.begin(), X2.end(), cmp2);
  for (int i = 0; i < X1.size(); i++) {
    if (X1[i].second != X2[i].second) {
      cout << "YES" << en;
      return 0;
    }
  }
  cout << "NO" << en;
}
