#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long int x[n];
  long long int y[n];
  int flag = 0;
  int countn = 0;
  int countp = 0;
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
    if (x[i] < 0)
      countn++;
    else
      countp++;
  }
  if (countn == n - 1 || countp == n - 1 || countn == n || countp == n)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
