#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x1, x2;
  cin >> n >> x1 >> x2;
  pair<long long, long long> P[n];
  long long k, b, i;
  for (i = 0; i < n; i++) {
    cin >> k >> b;
    P[i] = make_pair(k * x1 + b, k * x2 + b);
  }
  sort(P, P + n);
  bool flag = true;
  for (i = 1; i < n; i++)
    if (P[i].second < P[i - 1].second) flag = false;
  cout << (flag ? "NO" : "YES");
  return 0;
}
