#include <bits/stdc++.h>
int main() {
  int n, x, y, cntr = 0, cntl = 0, i;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d %d", &x, &y);
    if (x > 0)
      cntr++;
    else
      cntl++;
  }
  cntl == 0 || cntl == 1 || cntr == 0 || cntr == 1 ? printf("Yes")
                                                   : printf("No");
  return 0;
}
