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