import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random input = sys.stdin.readline n = int(input()) s = set() for i in range(n): a,b = map(int,input().split()) s.add((a,b)) print('Yes' if len(s) != n else 'No')