#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, x1, x2, k, b;
  vector<pair<long long, long long> > v;
  cin >> t;
  cin >> x1 >> x2;
  for (int i = 0; i < t; i++) {
    cin >> k >> b;
    v.push_back(make_pair(k * x1 + b, k * x2 + b));
  }
  sort(v.begin(), v.end());
  for (int i = 0; i < t - 1; i++)
    if (v[i].second > v[i + 1].second) {
      cout << "Yes";
      return 0;
    }
  cout << "No";
}
