#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int res1 = 0, res2 = 0;
  cin >> n;
  while (n--) {
    int x, y;
    cin >> x >> y;
    if (x < 0) res1++;
    if (x > 0) res2++;
  }
  if (res1 <= 1 || res2 <= 1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
