input()
S = input()
if len(S) == len(set([c for c in S])):
    print("No")
else:
    print("Yes")