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