N=int(input()) AB=set() for _ in range(N): a,b=map(int,input().split()) if (a,b) not in AB: AB.add((a,b)) else: exit(print("Yes")) print("No")