#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
int intcmp(const void *v1, const void *v2) { return *(int *)v1 - *(int *)v2; }
inline int read() {
  int x = 0, f = 1;
  char cc = getchar();
  while (cc < '0' || cc > '9') {
    if (cc == '-') f = -1;
    cc = getchar();
  }
  while (cc >= '0' && cc <= '9') {
    x = x * 10 + cc - '0';
    cc = getchar();
  }
  return x * f;
}
int main() {
  int n;
  int x, y;
  int cnt1 = 0, cnt2 = 0;
  n = read();
  while (n--) {
    x = read();
    y = read();
    if (x > 0)
      cnt1++;
    else
      cnt2++;
  }
  if (cnt1 == 1 || cnt2 == 1 || cnt1 == 0 || cnt2 == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
