#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, x1, x2, m, c;
  cin >> n >> x1 >> x2;
  vector<pair<long long, long long>> v;
  for (int i = 0; i < n; ++i) {
    cin >> m >> c;
    v.push_back({m * x1 + c, m * x2 + c});
  }
  sort(v.begin(), v.end());
  long long p = v[0].second;
  for (auto i : v) {
    if (i.second < p) {
      cout << "YES";
      return 0;
    }
    p = i.second;
  }
  cout << "NO" << endl;
  return 0;
}
