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