#include <bits/stdc++.h>
using namespace std;
int x[100005];
int y[100005];
int main() {
  std::ios::sync_with_stdio(false);
  ;
  int n;
  std::cin >> n;
  for (int i = 0; i < n; i++) {
    std::cin >> x[i] >> y[i];
  }
  int ct = 0;
  for (int i = 0; i < n; i++) {
    if (x[i] < 0) {
      ct++;
    }
  }
  if (ct <= 1) {
    std::cout << "Yes" << endl;
    return 0;
  }
  ct = 0;
  for (int i = 0; i < n; i++) {
    if (x[i] > 0) {
      ct++;
    }
  }
  if (ct <= 1) {
    std::cout << "Yes" << endl;
    return 0;
  }
  std::cout << "No\n";
  return 0;
}
