#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y, long long md) {
  long long res = 1;
  x %= md;
  while (y > 0) {
    if (y & 1) res = (res * x) % md;
    x = (x * x) % md;
    y = y >> 1;
  }
  return res % md;
}
int main() {
  long long n;
  cin >> n;
  long long x, y, cpos = 0, cneg = 0;
  for (long long i = 0; i < n; ++i) {
    cin >> x >> y;
    if (x > 0)
      cpos++;
    else
      cneg++;
  }
  if (cneg < 2 || cpos < 2)
    cout << "Yes";
  else
    cout << "No";
}
