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