#include <bits/stdc++.h>
using namespace std;
int n, x, y, a, b;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    if (x < 0)
      a++;
    else
      b++;
  }
  cout << (a < 2 || b < 2 ? "Yes" : "No");
}
