N=int(input()) A=[] for i in range(N): x,y=map(int, input().split()) A.append((x,y)) if N==len(set(A)): print('No') else: print('Yes')