#include <bits/stdc++.h>
using namespace std;
int a, b, x, y, n;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x >> y;
    if (x < 0)
      a++;
    else
      b++;
  }
  if (a <= 1 || b <= 1)
    cout << "Yes" << endl;
  else
    printf("No\n");
}
