n = int(input()) s = set() for _ in range(n): ab = tuple(map(int, input().split())) if ab in s: print('Yes') exit() else: s.add(ab) print('No')