#include <bits/stdc++.h>
int main() {
  int n, x, y, posx = 0, negx = 0, ans;
  scanf("%d", &n);
  while (n--) {
    scanf("%d %d", &x, &y);
    if (x < 0)
      negx++;
    else
      posx++;
  }
  ans = negx < posx ? negx : posx;
  if (ans >= 2)
    printf("NO\n");
  else
    printf("YES\n");
  return 0;
}
