#include <bits/stdc++.h>
using namespace std;
const int MAXN = 85;
const long long inf = 1e10;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int k1 = 0, k2 = 0;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    if (x < 0)
      k1++;
    else
      k2++;
  }
  if (k1 < 2 || k2 < 2)
    cout << "YES\n";
  else
    cout << "NO\n";
}
