#include <bits/stdc++.h>
using namespace std;
int n1, n2;
int n;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    if (x < 0)
      n1++;
    else
      n2++;
  }
  if (n1 <= 1 || n2 <= 1)
    puts("yEs");
  else
    puts("nO");
  return 0;
}
