#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, n, i, A = 0, B = 0;
  scanf("%d", &n);
  for (i = 1; i <= n; i++) {
    scanf("%d%d", &a, &b);
    if (a < 0) {
      A++;
    } else {
      B++;
    }
  }
  if (A <= 1 || B <= 1) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
