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