#include <bits/stdc++.h>
using namespace std;
int gcd(int f, int s) {
  if (s == 0)
    return f;
  else
    return gcd(s, f % s);
}
int const N = 200005;
long long const mod = 1000 * 1000 * 1000 + 7;
int main() {
  int a;
  cin >> a;
  int ans = 0, ans1 = 0;
  for (int i = 0; i < a; i++) {
    int t, t1;
    cin >> t >> t1;
    if (t < 0)
      ans1++;
    else
      ans++;
  }
  if (ans <= 1 || ans1 <= 1)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
