#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
char str[maxn];
bool vis[305];
inline int getint() {
  int r = 0, k = 1;
  char c = getchar();
  for (; c < '0' || c > '9'; c = getchar())
    if (c == '-') k = -1;
  for (; c >= '0' && c <= '9'; c = getchar()) r = r * 10 + c - '0';
  return r * k;
}
int main(int argc, char const *argv[]) {
  int n = getint();
  int r = 0, l = 0;
  while (n--) {
    int x = getint();
    int y = getint();
    if (x > 0) r++;
    if (x < 0) l++;
  }
  if (r > 1 && l > 1)
    puts("No");
  else
    puts("Yes");
  return 0;
}
