from collections import Counter n = int(input()) a = list(map(int, input().split())) c = Counter(a) for x in c: if c[x] >= 2: exit(print("Yes")) print("No")