n=int(input()) s=set(input()) if len(s)==n: print("No") else: print("Yes")