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