#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a = 0, b = 0, c = 0, d = 0;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    if (x > 0 && y >= 0)
      a++;
    else if (x < 0 && y >= 0)
      b++;
    else if (x <= 0 && y < 0)
      c++;
    else
      d++;
  }
  if (b == 1 && c == 0 || c == 1 && b == 0 || c == 0 && b == 0 ||
      a == 1 && d == 0 || d == 1 && a == 0 || a == 0 && d == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
