#include <bits/stdc++.h>
using namespace std;
const int N = 100010;
int main(void) {
  int n;
  cin >> n;
  int pos = 0, neg = 0;
  for (int i = 0; i < n; i++) {
    int x, y;
    scanf("%d %d", &x, &y);
    if (x < 0)
      neg++;
    else
      pos++;
  }
  printf("%s\n", (neg <= 1 or pos <= 1) ? "Yes" : "No");
  return 0;
}
