#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  cin >> n;
  int left = 0, right = 0;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    if (a > 0)
      right++;
    else
      left++;
  }
  if (left == 0 || left == 1 || right == 0 || right == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
