def Main(): n=int(input()) if len(set(list(input())))==n: print("No") else: print("Yes") Main()