#include <bits/stdc++.h>
using namespace std;
void fast() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  fast();
  int t, c = 0;
  cin >> t;
  int a[t], b[t];
  for (int i = 0; i < t; i++) cin >> a[i] >> b[i];
  for (int i = 0; i < t; i++) {
    if (a[i] < 0) c++;
  }
  if (c >= t - 1 || c == 1 || c == 0) {
    cout << "Yes"
         << "\n";
    return 0;
  }
  cout << "No"
       << "\n";
  return 0;
}
