#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, y, c = 0, d = 0;
  cin >> n;
  long long m = n;
  while (n--) {
    scanf("%lld %lld", &x, &y);
    if (x > 0) c++;
    if (x < 0) d++;
  }
  if (c == m - 1 || d == m - 1 || c == m || d == m)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
