n=int(input()) X=[tuple(map(int,input().split())) for i in range(n)] if len(set(X))==n: print("No") else: print("Yes")