#include <bits/stdc++.h>
int main() {
  int t, x, y, cnt1 = 0, cnt2 = 0;
  scanf("%d", &t);
  while (t--) {
    scanf("%d %d", &x, &y);
    if (x > 0) {
      cnt1++;
    } else {
      cnt2++;
    }
  }
  if (cnt1 == 1 || cnt2 == 1 || cnt1 == 0 || cnt2 == 0)
    printf("Yes");
  else
    printf("No");
  return 0;
}
