#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int pos = 0;
  int neg = 0;
  for (int i = 0; i < n; i++) {
    long long temp1, temp2;
    cin >> temp1 >> temp2;
    if (temp1 < 0) {
      neg++;
    }
    if (temp1 > 0) {
      pos++;
    }
  }
  if (pos <= 1 || neg <= 1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
