#include <bits/stdc++.h>
using namespace std;
int main() {
  long n = 0;
  cin >> n;
  long ca = 0, cb = 0;
  long a[100000] = {0};
  long b[100000] = {0};
  while (n--) {
    cin >> a[n] >> b[n];
    if (a[n] > 0) {
      ca++;
    } else if (a[n] < 0) {
      cb++;
    }
  }
  if ((cb == 1 || cb == 0) || (ca == 1 || ca == 0)) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
