#include <bits/stdc++.h>
using namespace std;
const unsigned int mod = 1e7 + 7;
const long long int N = 1e5;
long long int a[200009];
vector<long long int> v[200009];
bool visit[200009] = {false};
long long int ve = 0, e = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int m, ans = 0, d, l, k, n, q = 0, p = 0, t = 0, z = 0, w,
                   pre = 1e5, mid, co[5] = {0}, a[10009] = {0}, b[10009] = {0},
                   t1, t2, now, r = 0, i = 0, j = 0, flag = 0, temp = 0,
                   e = -1e4, o = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> l >> m;
    if (l < 0)
      p++;
    else
      q++;
  }
  if (p <= 1 || q <= 1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
