#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  long long n, a, b, x1, x2;
  cin >> n >> x1 >> x2;
  vector<pair<long long, long long> > lines(n);
  vector<pair<long long, long long> > right(n);
  for (long long i = 0; i < n; i++) {
    cin >> a >> b;
    lines[i] = {a, b};
    right[i] = {a * x2 + b, i};
  }
  sort(right.begin(), right.end());
  string res = "NO";
  long long fst = right[0].second;
  long long prev = LLONG_MIN;
  long long curr = lines[fst].first * x1 + lines[fst].second;
  for (long long i = 1; i < n; i++) {
    long long l1 = right[i].second;
    long long v1 = lines[l1].first * x1 + lines[l1].second;
    if (right[i].first == right[i - 1].first) {
      curr = max(curr, v1);
      if (v1 < prev) res = "YES\n";
    } else {
      prev = max(prev, curr);
      if (v1 < prev) res = "YES";
      curr = v1;
    }
  }
  cout << res << '\n';
}
