#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long x, y;
  map<string, int> mp;
  mp["p"] = 0;
  mp["n"] = 0;
  for (long long i = 0; i < n; i++) {
    cin >> x >> y;
    if (x > 0) {
      mp["p"]++;
    } else {
      mp["n"]++;
    }
  }
  map<string, int>::iterator itp;
  map<string, int>::iterator itn;
  itp = mp.find("p");
  itn = mp.find("n");
  if (itp->second == 0 || itn->second == 0) {
    cout << "Yes";
  } else {
    if (itp->second == 1 || itn->second == 1)
      cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}
