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