#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<pair<int, int>> points;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    points.push_back(make_pair(x, y));
  }
  int positive = 0;
  int negative = 0;
  for (int i = 0; i < points.size(); i++) {
    if (points[i].first < 0) {
      negative++;
    } else if (points[i].first > 0) {
      positive++;
    }
  }
  if (positive == 1 || negative == 1 || positive == 0 || negative == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
