#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int ans = 0, pos = 0, neg = 0;
  while (n--) {
    int x, y;
    cin >> x >> y;
    if (x > 0) {
      pos++;
    } else {
      neg++;
    }
  }
  if (pos > neg) {
    if (neg <= 1) {
      cout << "YES"
           << "\n";
    } else {
      cout << "NO"
           << "\n";
    }
  } else if (neg > pos) {
    if (pos <= 1) {
      cout << "YES"
           << "\n";
    } else {
      cout << "NO"
           << "\n";
    }
  } else {
    if (pos > 1 && neg > 1) {
      cout << "NO"
           << "\n";
    } else {
      cout << "YES"
           << "\n";
    }
  }
}
int main() {
  cin.tie(NULL);
  cout.tie(NULL);
  ios_base::sync_with_stdio(false);
  solve();
  return 0;
}
