N = int(input()) AB = [tuple(map(int, input().split())) for _ in range(N)] if len(set(AB)) != N: print('Yes') else: print('No')