#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int c = 0, c1 = 0;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    if (x > 0) c++;
    if (x < 0) c1++;
  }
  if (c == 1 or c1 == 1 or (c == 0 and c1 > 0) or (c1 == 0 and c > 0))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
