#include <bits/stdc++.h>
using namespace std;
long long n;
long long x1, x2;
pair<long long, long long> p[1000006];
pair<long long, long long> res[1000005];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  cin >> x1 >> x2;
  for (long long i = 1; i <= n; i++) {
    cin >> p[i].first >> p[i].second;
    res[i].first = (p[i].first * x1 + p[i].second);
    res[i].second = (p[i].first * x2 + p[i].second);
  }
  sort(res + 1, res + n + 1);
  for (long long i = 2; i <= n; i++) {
    if (res[i].second < res[i - 1].second) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
