#include <bits/stdc++.h>
using namespace std;
const int M = 1e5;
int main() {
  int t;
  cin >> t;
  int f[t];
  memset(f, 0, sizeof(0));
  for (int i = 0; i < t; ++i) {
    int x, y;
    cin >> x >> y;
    if (x > 0)
      f[i] = 1;
    else if (x < 0)
      f[i] = 0;
  }
  int sum = 0;
  for (int i = 0; i < t; ++i) {
    if (f[i]) sum++;
  }
  if (sum == 1 || sum == t - 1 || sum == t || sum == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
