#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
vector<pair<long long, long long> > vc;
int main() {
  setlocale(LC_ALL, "Russian");
  ios_base::sync_with_stdio(false);
  int n;
  long long x1, x2, a, b;
  scanf("%d", &n);
  scanf("%I64d %I64d", &x1, &x2);
  for (int i = 1; i <= n; i++) {
    scanf("%I64d %I64d", &a, &b);
    vc.push_back(make_pair(a * x1 + b, a * x2 + b));
  }
  sort(vc.begin(), vc.end());
  long long mx = vc[0].second;
  for (int i = 1; i < n; i++) {
    if (mx > vc[i].second) {
      printf("YES");
      return 0;
    }
    mx = max(mx, vc[i].second);
  }
  printf("NO");
  return 0;
}
