#include <bits/stdc++.h>
using namespace std;
class Line {
 public:
  long long y, idx, k;
  Line() {
    y = 0;
    idx = 0;
  }
};
bool compare1(const Line &l1, const Line &l2) {
  if (l1.y > l2.y)
    return true;
  else if (l1.y < l2.y)
    return false;
  else
    return (l1.k > l2.k);
}
bool compare2(const Line &l1, const Line &l2) {
  if (l1.y > l2.y)
    return true;
  else if (l1.y < l2.y)
    return false;
  else
    return (l1.k < l2.k);
}
int main() {
  ios::sync_with_stdio(false);
  long long n, x1, x2, k, b;
  cin >> n;
  Line y1[n], y2[n];
  bool intersect = false;
  cin >> x1 >> x2;
  for (int i = 0; i < n; i++) {
    cin >> k >> b;
    y1[i].k = k;
    y2[i].k = k;
    y1[i].idx = i;
    y2[i].idx = i;
    y1[i].y = k * x1 + b;
    y2[i].y = k * x2 + b;
  }
  sort(y1, y1 + n, compare1);
  sort(y2, y2 + n, compare2);
  for (int i = 0; i < n; i++) {
    if (y2[i].idx != y1[i].idx) {
      intersect = true;
      break;
    }
  }
  if (intersect)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
