#include <bits/stdc++.h>
int main() {
  size_t n;
  std::cin >> n;
  size_t n_pos = 0, n_neg = 0;
  for (size_t i = 0; i < n; ++i) {
    int x, y;
    std::cin >> x >> y;
    if (x < 0)
      ++n_neg;
    else
      ++n_pos;
  }
  std::cout << ((n_pos <= 1 || n_neg <= 1) ? "Yes" : "No") << std::endl;
}
