#include <bits/stdc++.h>
int main(int argc, char **argv) {
  unsigned int l = 0, r = 0, n = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    int x, y;
    scanf("%d %d", &x, &y);
    if (x < 0)
      ++l;
    else if (x > 0)
      ++r;
  }
  if ((l == 1) || (r == 1) || ((l == 0) && (r != 0)) || ((l != 0) && (r == 0)))
    printf("Yes\n");
  else
    printf("No\n");
}
