#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, x, y;
  cin >> t;
  int n = t;
  int p = 0, r = 0, w = 0, e = 0, h = 0, q = 0;
  while (t--) {
    cin >> x >> y;
    if ((x >= 0 && y >= 0) || (x >= 0 && y <= 0))
      p++;
    else
      r++;
    if (x >= 0 && y >= 0) q++;
    if (x >= 0 && y < 0) h++;
    if (x < 0 && y >= 0) e++;
    if (x < 0 && y < 0) w++;
  }
  if (w == n || e == n || h == n || q == n)
    cout << "Yes";
  else if (p == 1 || r == 1 || p == 0 || r == 0)
    cout << "Yes";
  else
    cout << "No";
}
