#include <bits/stdc++.h>
using namespace std;
int n, l, r;
int main() {
  cin >> n;
  for (; n--;) {
    int x, y;
    cin >> x >> y;
    x > 0 ? r++ : l++;
  }
  puts(l <= 1 || r <= 1 ? "Yes" : "No");
}
