#include <bits/stdc++.h>
using namespace std;
using namespace std;
;
int a = 0, b = 0;
int n;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    int x, y;
    scanf("%d %d", &x, &y);
    if (x < 0)
      ++b;
    else
      ++a;
  }
  if (a <= 1 || b <= 1)
    cout << "Yes\n";
  else
    cout << "No\n";
}
