N=int(input())
S=list(input())
s=list(set(S))
if len(S)==len(s):
    print("No")
else:
    print("Yes")