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