n = int(input()) bir = set() for _ in range(n): a,b = map(int,input().split()) bir.add((a,b)) print('No') if n == len(bir) else print('Yes')