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