#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, cnt = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x, y;
    cin >> x >> y;
    cnt += x < 0;
  }
  cout << ((cnt <= 1 || n - cnt <= 1) ? "Yes" : "No") << endl;
  return 0;
}
