#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > x;
int main() {
  int n;
  cin >> n;
  long long int a, b;
  int c1 = 0, c2 = 0;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    if (a >= 0) {
      c2++;
    } else {
      c1++;
    }
  }
  if (c1 == 1 or c1 == 0) {
    cout << "YES\n";
  } else if (c2 == 1 or c2 == 0) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
}
