#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long LL_INF = 0x3f3f3f3f3f3f3f3f;
const double PI = acos(-1);
int main() {
  int n;
  cin >> n;
  int x[n], y[n];
  int cord[n];
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
    if (x[i] > 0 && y[i] > 0 || (x[i] > 0 && y[i] == 0))
      cord[i] = 1;
    else if (x[i] < 0 && y[i] > 0)
      cord[i] = 2;
    else if (x[i] < 0 && y[i] < 0 || (x[i] < 0 && y[i] == 0))
      cord[i] = 3;
    else
      cord[i] = 4;
  }
  int a = 0, b = 0;
  for (int j = 0; j < n; j++) {
    if (cord[j] == 1 || cord[j] == 4)
      a++;
    else
      b++;
  }
  if (a == 1 || b == 1 || a == 0 || b == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
