n=int(input()) s=input() l=list(map(str,s)) if len(l)!=len(set(l)): print("Yes") else: print("No")