#include <bits/stdc++.h>
using namespace std;
long long n, m, x, y, z, a, b, c, arr[100100];
string k, t;
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> x >> y;
    if (x < 0)
      a++;
    else if (x > 0)
      b++;
  }
  if (a < 2 || b < 2)
    cout << "Yes";
  else
    cout << "No";
}
