#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 1;
int n, a = 0, b = 0, x, y;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x >> y;
    if (x > 0)
      b++;
    else
      a++;
  }
  if (a <= 1 || b <= 1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
