N=int(input()) L=[[] for i in range(N)] V=0 for i in range(N): L[i]=list(map(int,input().split())) if L[i][1]==1: V=max(L[i][0],V) flag=1 if V==0: flag=0 for i in range(N): if L[i][0]>V*L[i][1]: flag=0 if flag: print("Yes") else: print("No")