#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x[n], y[n], pos = 0, neg = 0;
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
    if (x[i] > 0)
      pos++;
    else
      neg++;
  }
  cout << ((pos > 1 && neg > 1) ? "No" : "Yes");
  return 0;
}
