N = int(input()) S = set() for _ in range(N): a, b = map(int, input().split()) if (a, b) in S: print("Yes") exit() else: S.add((a, b)) print("No")