#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, sum = 0, s = 0;
  cin >> n;
  int a[n], b[n];
  for (i = 0; i < n; i++) {
    cin >> a[i] >> b[i];
  }
  for (i = 0; i < n; i++) {
    if (a[i] >= 0) {
      sum = sum + 1;
    } else {
      s = s + 1;
    }
  }
  if (sum == 0 || s == 0 || sum == 1 || s == 1) {
    cout << "Yes";
  } else {
    cout << "No";
  }
}
