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