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