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