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