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