n =int(input()) s = set(input() for i in range(n)) print('Yes' if n==len(s) else 'No')