#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 10;
int main() {
  ios_base ::sync_with_stdio(false), cout.tie(0), cin.tie(0);
  int n, cnt = 0;
  cin >> n;
  int sv = n;
  while (n--) {
    int x, y;
    cin >> x >> y;
    if (x < 0) ++cnt;
  }
  cout << (min(cnt, sv - cnt) <= 1 ? "Yes\n" : "No\n");
  return 0;
}
