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