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