#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, neg = 0, pos = 0;
  cin >> t;
  while (t--) {
    int x, y;
    cin >> x >> y;
    if (x < 0)
      neg++;
    else if (x > 0)
      pos++;
  }
  if (neg == 0 || pos == 0)
    cout << "Yes\n";
  else if (neg == 1 || pos == 1)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
