n = int(input()) ab = set() for i in range(n): a, b = input().split() s = (a, b) ab.add(s) print("Yes" if len(ab) != n else "No")