(n,),*e=[[*map(int,s.split())]for s in open(0)] e.sort() for (a1,b1),(a2,b2)in zip(e,e[1:]): if a1==a2 and b1==b2: exit(print('Yes')) print('No')