N=int(input()) s=set() for i in range(N): A,B=map(int,input().split()) s.add(A*100000+B) if len(s)==N: print("No") else: print("Yes")