#include <bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
using namespace std;
int n;
void enter() { cin >> n; }
void solve() {
  int L = 0, R = 0;
  for (int i = 1; i <= n; i++) {
    int first, second;
    cin >> first >> second;
    if (first < 0)
      L++;
    else
      R++;
  }
  if (L <= 1 || R <= 1) {
    cout << "Yes" << endl;
    return;
  }
  cout << "No" << endl;
}
int main() {
  int t = 1;
  while (t--) {
    enter();
    solve();
  }
}
