#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int n;
  cin >> n;
  long long int t = n;
  long long int t1 = 0, t2 = 0;
  while (t--) {
    long long int x, y;
    cin >> x >> y;
    if (x > 0)
      t1++;
    else
      t2++;
  }
  if (t1 == 1 || t2 == 1)
    cout << "Yes";
  else if (t1 == 0 || t2 == 0)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
