#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int plusside = 0, negside = 0;
  cin >> N;
  int a, b;
  for (int i = 0; i < N; i++) {
    cin >> a >> b;
    if (a > 0) {
      plusside++;
    } else
      negside++;
  }
  if (plusside <= 1 or negside <= 1) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
