import sys input = sys.stdin.readline N=int(input()) B=[tuple(map(int,input().split())) for i in range(N)] B.sort(key=lambda x:x[0]/x[1],reverse=True) if B[0][1]==1: print("Yes") else: print("No")