#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x, y, p = 0, nev = 0;
  while (n--) {
    cin >> x >> y;
    if (x > 0)
      p++;
    else
      nev++;
  }
  if ((p == 0 || p == 1) || (nev == 0 || nev == 1))
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
