#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long x, y, ans = 0;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    if (x < 0) ans++;
  }
  if (ans < 2 || n - ans < 2)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
