#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long x, y;
  long long a = 0, d = 0;
  for (long long i = 0; i < n; i++) {
    cin >> x >> y;
    if (x < 0) {
      a++;
    } else
      d++;
  }
  if (a <= 1) {
    cout << "Yes" << endl;
  } else if (d <= 1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
