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