#include <bits/stdc++.h>
using namespace std;
int arr[101][101];
int main() {
  int n;
  cin >> n;
  int plus = 0;
  int minus = 0;
  for (int i = 0; i < n; i++) {
    int x;
    int y;
    cin >> x;
    cin >> y;
    if (x > 0)
      plus++;
    else
      minus++;
    if (plus > 1 && minus > 1) {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}
