#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t, s = 0, l = 0, n;
  cin >> t;
  n = t;
  while (t--) {
    long long int a, b;
    cin >> a >> b;
    if (a < 0) s++;
  }
  if (s <= 1 || s >= n - 1)
    cout << "Yes\n";
  else
    cout << "No\n";
}
