#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int n;
int x,y,l,r;
int main()
{
cin >> n;
while (n -- ){
cin >> x >> y;
if(x < 0) l ++;
else r ++ ;
}
if(l <= 1 || r <= 1) puts("Yes");
else puts("No");
return 0;
}