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