#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  long long n;
  long long countneg = 0, countpov = 0;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    if (x < 0) {
      countneg++;
    } else {
      countpov++;
    }
  }
  if (countneg == 0 || countneg == 1 || countpov == 0 || countpov == 1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
