#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x, y, t, neg = 0, pos = 0;
  cin >> t;
  while (t--) {
    cin >> x >> y;
    if (x < 0)
      neg++;
    else
      pos++;
  }
  if (neg <= 1 || pos <= 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
