N = int(input()) birthdays = {tuple(map(int, input().split())) for _ in range(N)} print("Yes" if len(birthdays) < N else "No")