#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, cl = 0, cr = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    long long t1, t2;
    scanf("%lld%lld", &t1, &t2);
    if (t1 < 0) {
      cl++;
    } else {
      cr++;
    }
  }
  if (cl == 0 || cr == 0) {
    printf("YES\n");
    return 0;
  }
  if (cl == 1 || cr == 1) {
    printf("YES\n");
    return 0;
  } else {
    printf("NO\n");
  }
  return 0;
}
