#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int l = 0, r = 0;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    if (x < 0)
      ++l;
    else
      ++r;
  }
  if (l == 1 || r == 1 || l == 0 || r == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
