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