N = int(input()) A = [input().split() for i in range(N)] A.sort() for i in range(N-1): if A[i] == A[i+1]: exit(print("Yes")) print("No")